summaryrefslogtreecommitdiff
path: root/t/cppcheck
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-09-26 15:10:51 +0200
committerGuillem Jover <guillem@debian.org>2018-09-26 19:35:56 +0200
commitd726a1e0469320deae5dcd080750ddfd5438b17a (patch)
treed5dd47068d1685a2213643c80fb989cb1d71e2d7 /t/cppcheck
parenta71a4bceba236e4dcd511c24e7b43851180ab4a5 (diff)
downloaddpkg-d726a1e0469320deae5dcd080750ddfd5438b17a.tar.gz
test: Change cppcheck test to cope with CPAN distribution paths
The paths are different in the CPAN distribution, so we need to use a glob to catch the file in both layouts.
Diffstat (limited to 't/cppcheck')
-rw-r--r--t/cppcheck/cppcheck.supp2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/cppcheck/cppcheck.supp b/t/cppcheck/cppcheck.supp
index 37e4a9ef9..e7888e513 100644
--- a/t/cppcheck/cppcheck.supp
+++ b/t/cppcheck/cppcheck.supp
@@ -19,7 +19,7 @@ knownConditionTrueFalse:src/script.c:162
literalWithCharPtrCompare:lib/dpkg/t/t-test.c
// Ignore, the code is used only for its binary artifacts.
-uninitMemberVar:scripts/t/Dpkg_Shlibs/patterns.cpp
+uninitMemberVar:*/Dpkg_Shlibs/patterns.cpp
// BUG: False positive, the macros from lib/dpkg/dlist.h use the tail member.
unusedStructMember:lib/dpkg/triglib.c:378