mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
84cc51ea74
commit
88a185960d
2
cfg.mk
2
cfg.mk
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue