]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Allow use of close() in mock libraries
authorAndrea Bolognani <abologna@redhat.com>
Thu, 11 Feb 2016 12:51:26 +0000 (13:51 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 11 Feb 2016 17:24:31 +0000 (18:24 +0100)
As mock libraries are not to be linked against libvirt, the
sc_prohibit_close syntax-check rule does not apply.

This fixes a syntax-check failure introduced by commit a03cbfe0fb.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 3f78842a5b95711a51ef99a2719e342558f2e568..5b864afb3cd3d74566d5a3a2b373e03762bc5004 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -1158,7 +1158,7 @@ exclude_file_name_regexp--sc_prohibit_strdup = \
   ^(docs/|examples/|src/util/virstring\.c|tests/vir(netserverclient|cgroup)mock.c$$)
 
 exclude_file_name_regexp--sc_prohibit_close = \
-  (\.p[yl]$$|\.spec\.in$$|^docs/|^(src/util/virfile\.c|src/libvirt-stream\.c|tests/vir(cgroup|pci)mock\.c)$$)
+  (\.p[yl]$$|\.spec\.in$$|^docs/|^(src/util/virfile\.c|src/libvirt-stream\.c|tests/vir.+mock\.c)$$)
 
 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
   (^tests/(qemuhelp|nodeinfo|virpcitest)data/|\.diff$$)