]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: remove .needspawn = false instances
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 8 Sep 2024 10:38:12 +0000 (11:38 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 9 Sep 2024 04:39:19 +0000 (23:39 -0500)
The .needspawn = false is the default so just remove them. Tall the
other tests don't set it, so remove the test-util.c instances.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/118
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-util.c

index 9c662a209b2d8a8a4cbf29ea08e43d88c22215c8..1bab104a89cfb665576b055833e14615ef1c70ee 100644 (file)
@@ -100,9 +100,7 @@ static int test_strchr_replace(const struct test *t)
        return EXIT_SUCCESS;
 }
 DEFINE_TEST(test_strchr_replace,
-       .description = "check implementation of strchr_replace()",
-       .need_spawn = false,
-       );
+       .description = "check implementation of strchr_replace()")
 
 static int test_underscores(const struct test *t)
 {
@@ -128,9 +126,7 @@ static int test_underscores(const struct test *t)
        return EXIT_SUCCESS;
 }
 DEFINE_TEST(test_underscores,
-       .description = "check implementation of underscores()",
-       .need_spawn = false,
-       );
+       .description = "check implementation of underscores()")
 
 static int test_path_ends_with_kmod_ext(const struct test *t)
 {
@@ -164,9 +160,7 @@ static int test_path_ends_with_kmod_ext(const struct test *t)
        return EXIT_SUCCESS;
 }
 DEFINE_TEST(test_path_ends_with_kmod_ext,
-       .description = "check implementation of path_ends_with_kmod_ext()",
-       .need_spawn = false,
-       );
+       .description = "check implementation of path_ends_with_kmod_ext()")
 
 #define TEST_WRITE_STR_SAFE_FILE "/write-str-safe"
 #define TEST_WRITE_STR_SAFE_PATH TESTSUITE_ROOTFS "test-util2/" TEST_WRITE_STR_SAFE_FILE
@@ -212,9 +206,7 @@ static int test_addu64_overflow(const struct test *t)
        return EXIT_SUCCESS;
 }
 DEFINE_TEST(test_addu64_overflow,
-       .description = "check implementation of addu4_overflow()",
-       .need_spawn = false,
-       );
+       .description = "check implementation of addu4_overflow()")
 
 
 static int test_backoff_time(const struct test *t)
@@ -253,9 +245,7 @@ static int test_backoff_time(const struct test *t)
        return EXIT_SUCCESS;
 }
 DEFINE_TEST(test_backoff_time,
-       .description = "check implementation of get_backoff_delta_msec()",
-       .need_spawn = false,
-       );
+       .description = "check implementation of get_backoff_delta_msec()")
 
 
 TESTSUITE_MAIN();