build: Fix sc_prohibit_exit_in_tests syntax check

This check makes sense only in *.c files.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2017-03-27 16:46:12 +02:00
parent 84cc51ea74
commit 88a185960d
1 changed files with 1 additions and 1 deletions

2
cfg.mk
View File

@ -808,7 +808,7 @@ sc_prohibit_semicolon_at_eol_in_python:
# mymain() in test files should use return, not exit, for nicer output
sc_prohibit_exit_in_tests:
@prohibit='\<exit *\(' \
in_vc_files='^tests/' \
in_vc_files='^tests/.*\.c$$' \
halt='use return, not exit(), in tests' \
$(_sc_search_regexp)