]> git.ipfire.org Git - pakfire.git/commitdiff
tests: deps: Don't check for errno any more
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 Oct 2024 15:59:25 +0000 (15:59 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 25 Oct 2024 15:59:25 +0000 (15:59 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/deps.c

index 4a1a456abb32f57a6f4c58969911cfd0ffbdd8c3..11de51c3e89e0ee7159d72100d2b237a55edcf43 100644 (file)
@@ -125,8 +125,8 @@ static int test_dependencies(const struct test* t) {
        const char* result = NULL;
 
        // Check some invalid inputs
-       ASSERT_ERRNO(pakfire_str2dep(t->pakfire, NULL) == 0, EINVAL);
-       ASSERT_ERRNO(pakfire_str2dep(t->pakfire, "") == 0, EINVAL);
+       ASSERT(pakfire_str2dep(t->pakfire, NULL) == ID_NULL);
+       ASSERT(pakfire_str2dep(t->pakfire, "") == ID_NULL);
 
        // Check some valid inputs
        for (const char** relation = relations; *relation; relation++) {