]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite/test-init: use distinct test names
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 15 Nov 2024 15:44:26 +0000 (15:44 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Thu, 21 Nov 2024 04:27:37 +0000 (22:27 -0600)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/246
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-init.c

index 2c825dfb5bb2e5fd7f35c3fd3787927553ee43f4..3bfb14eedeea1696a6fabbca3150a523359c0f95 100644 (file)
@@ -39,7 +39,7 @@ static noreturn int test_load_resources(const struct test *t)
 
        exit(EXIT_SUCCESS);
 }
-DEFINE_TEST(test_load_resources,
+DEFINE_TEST_WITH_FUNC(test_load_resource1, test_load_resources,
            .description = "test if kmod_load_resources works (recent modprobe on kernel without modules.builtin.modinfo)",
            .config = {
                [TC_ROOTFS] = TESTSUITE_ROOTFS "test-init-load-resources/",
@@ -47,7 +47,7 @@ DEFINE_TEST(test_load_resources,
            },
            .need_spawn = true);
 
-DEFINE_TEST(test_load_resources,
+DEFINE_TEST_WITH_FUNC(test_load_resource2, test_load_resources,
            .description = "test if kmod_load_resources works with empty modules.builtin.aliases.bin (recent depmod on kernel without modules.builtin.modinfo)",
            .config = {
                [TC_ROOTFS] = TESTSUITE_ROOTFS "test-init-load-resources-empty-builtin-aliases-bin/",