]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: Fix sc_prohibit_exit_in_tests syntax check
authorJiri Denemark <jdenemar@redhat.com>
Mon, 27 Mar 2017 14:46:12 +0000 (16:46 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 27 Mar 2017 14:52:29 +0000 (16:52 +0200)
This check makes sense only in *.c files.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 36f70bfb93d280d77feef420b6266c7206f57246..ceca27f5d2b8b34358b1ceac6a9b40d6dbea3ac6 100644 (file)
--- a/cfg.mk
+++ b/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)