]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite/test-multi-softdep: style polish
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 1 Apr 2025 15:32:03 +0000 (16:32 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 1 Apr 2025 16:55:07 +0000 (11:55 -0500)
Add a few trailing commas and reshuffle things so clang-format doesn't
get confused and we follow the existing style.

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

index 6ec3b04bc07b9ac2b2e300be0898187124a0efb3..9c94472bee6b9c57af7321ac8fa0e24b99f97283 100644 (file)
@@ -17,12 +17,18 @@ static const struct {
        const char *modname;
        const char *pre[MAX_SOFTDEP_N];
        const char *post[MAX_SOFTDEP_N];
-} test_modules[] = { { .modname = "mod-softdep-a",
-                      .pre = { "mod_foo_a", "mod_foo_b" },
-                      .post = { "mod_foo_c" } },
-                    { .modname = "mod-softdep-b",
-                      .pre = { "mod_foo_a" },
-                      .post = { "mod_foo_b", "mod_foo_c" } } };
+} test_modules[] = {
+       {
+               .modname = "mod-softdep-a",
+               .pre = { "mod_foo_a", "mod_foo_b" },
+               .post = { "mod_foo_c" },
+       },
+       {
+               .modname = "mod-softdep-b",
+               .pre = { "mod_foo_a" },
+               .post = { "mod_foo_b", "mod_foo_c" },
+       },
+};
 
 static int check_dependencies(const char *const *modnames,
                              const struct kmod_list *mod_list)
@@ -119,9 +125,10 @@ fail:
  * See https://github.com/kmod-project/kmod/issues/33 for more details.
  */
 DEFINE_TEST(multi_softdep, .description = "check if multiple softdep is supported",
+           .expected_fail = true,
            .config = {
-               [TC_UNAME_R] = "4.4.4",
-               [TC_ROOTFS] = TESTSUITE_ROOTFS "test-multi-softdep/",
-           }, .expected_fail=true);
+                   [TC_UNAME_R] = "4.4.4",
+                   [TC_ROOTFS] = TESTSUITE_ROOTFS "test-multi-softdep/",
+           });
 
 TESTSUITE_MAIN();