]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: move test-blacklist to DEFINE_TEST
authorMarcus Meissner <meissner@suse.de>
Sun, 22 Feb 2015 10:48:13 +0000 (11:48 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sun, 22 Feb 2015 16:46:18 +0000 (13:46 -0300)
otherwise the test will not be executed.

Signed-Off-By: Marcus Meissner <meissner@suse.de>
testsuite/test-blacklist.c

index 0b9a30e8fb0b842e52eb5a3034a1b77bdd33c402..969567ddc81787c8729bcd3cfe4681d708f606f9 100644 (file)
@@ -93,14 +93,13 @@ fail_lookup:
        kmod_unref(ctx);
        return EXIT_FAILURE;
 }
-static const struct test sblacklist_1 = {
-       .name = "blacklist_1",
+
+DEFINE_TEST(blacklist_1,
        .description = "check if modules are correctly blacklisted",
-       .func = blacklist_1,
        .config = {
                [TC_ROOTFS] = TESTSUITE_ROOTFS "test-blacklist/",
        },
        .need_spawn = true,
-};
+);
 
 TESTSUITE_MAIN();