From: Emil Velikov Date: Sun, 8 Sep 2024 10:38:12 +0000 (+0100) Subject: testsuite: remove .needspawn = false instances X-Git-Tag: v34~388 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e38dc68b37cbbfb72833063c7bb124b2fdc314c;p=thirdparty%2Fkmod.git testsuite: remove .needspawn = false instances 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 Link: https://github.com/kmod-project/kmod/pull/118 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/test-util.c b/testsuite/test-util.c index 9c662a20..1bab104a 100644 --- a/testsuite/test-util.c +++ b/testsuite/test-util.c @@ -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();