This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=4d1cace535d551c379662866eb628c932266b527 commit 4d1cace535d551c379662866eb628c932266b527 Author: Guillem Jover <[email protected]> AuthorDate: Mon Nov 21 23:24:22 2022 +0100 test: Use pkginstance in a new unit test This variable was being modified but never actually used. Add a check that verifies its expected value. Warned-by: clang-16 --- lib/dpkg/t/t-pkg-hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dpkg/t/t-pkg-hash.c b/lib/dpkg/t/t-pkg-hash.c index 72185a2f1..2c009f88e 100644 --- a/lib/dpkg/t/t-pkg-hash.c +++ b/lib/dpkg/t/t-pkg-hash.c @@ -164,6 +164,7 @@ test_pkg_hash(void) } } pkg_hash_iter_free(iter); + test_pass(pkginstance == 5); pkg_hash_reset(); test_pass(pkg_hash_count_set() == 0); @@ -172,7 +173,7 @@ test_pkg_hash(void) TEST_ENTRY(test) { - test_plan(71); + test_plan(72); test_pkg_hash(); } -- Dpkg.Org's dpkg

