]> git.ipfire.org Git - pakfire.git/commitdiff
tests: package: Fix dependency check after adding self-provides
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Nov 2022 21:08:58 +0000 (21:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Nov 2022 21:08:58 +0000 (21:08 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/package.c

index 924cfc76dc58be4a1e2e771748a893284f517f9e..7c1e73595211f8d691d7591637baa74db9fb518e 100644 (file)
@@ -231,7 +231,7 @@ static int test_deps(const struct test* t) {
 
        // There should be one element called "a"
        for (char** dep = deps; *dep; dep++) {
-               ASSERT_STRING_EQUALS(*dep, "a");
+               ASSERT(strcmp(*dep, "test = 1.0-1") == 0 || strcmp(*dep, "a") == 0);
        }
 
        // Everything passed