[libvirt] [PATCH 1/2] build: Fix sc_prohibit_exit_in_tests syntax check

Jiri Denemark jdenemar at redhat.com
Mon Mar 27 14:54:45 UTC 2017


This check makes sense only in *.c files.

Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
---
 cfg.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cfg.mk b/cfg.mk
index 36f70bfb9..ceca27f5d 100644
--- 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)
 
-- 
2.12.2




More information about the libvir-list mailing list