]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
tests: Actually run them all when we want all
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Aug 2022 10:11:25 +0000 (10:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Aug 2022 10:11:25 +0000 (10:11 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/testsuite.c

index 417a60b9e592b19f5350afa88f373d65e1658367..e90fd6f1acaf4b25b36d0f3256d5d9f3e2e4f858 100644 (file)
@@ -113,7 +113,7 @@ int __testsuite_add_test(const char* name, int (*func)(const struct test* t)) {
 static int check_whether_to_run(const struct test* t, const int argc, const char* argv[]) {
        // Run all tests when nothing has been selected
        if (argc < 2)
-               return 0;
+               return 1;
 
        // Check if this test has been listed
        for (unsigned int i = 1; i < argc; i++) {