From: Emil Velikov Date: Tue, 1 Apr 2025 15:32:03 +0000 (+0100) Subject: testsuite/test-multi-softdep: style polish X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a283e966c38eeb5b80c2da8a721763c91f77aff2;p=thirdparty%2Fkmod.git testsuite/test-multi-softdep: style polish 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 Link: https://github.com/kmod-project/kmod/pull/333 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/test-multi-softdep.c b/testsuite/test-multi-softdep.c index 6ec3b04b..9c94472b 100644 --- a/testsuite/test-multi-softdep.c +++ b/testsuite/test-multi-softdep.c @@ -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();