mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
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…
x
Reference in New Issue
Block a user