From: Emil Velikov Date: Sun, 8 Sep 2024 10:38:12 +0000 (+0100) Subject: testsuite: reformat and clang-format off arrays X-Git-Tag: v34~386 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f962927fc10a7bd2698990abec9578d7576503a7;p=thirdparty%2Fkmod.git testsuite: reformat and clang-format off arrays For some arrays, clang-format does far than ideal jobs reformatting. Do so manually and ban clang-format from interfering. 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-new-module.c b/testsuite/test-new-module.c index 7ce85037..866526de 100644 --- a/testsuite/test-new-module.c +++ b/testsuite/test-new-module.c @@ -18,12 +18,14 @@ static int from_name(const struct test *t) { static const char *const modnames[] = { + // clang-format off "ext4", "balbalbalbbalbalbalbalbalbalbal", "snd-hda-intel", "snd-timer", "iTCO_wdt", NULL, + // clang-format on }; const char *const *p; struct kmod_ctx *ctx; diff --git a/testsuite/test-util.c b/testsuite/test-util.c index 1bab104a..fde8e525 100644 --- a/testsuite/test-util.c +++ b/testsuite/test-util.c @@ -20,12 +20,14 @@ static int alias_1(const struct test *t) { static const char *const input[] = { + // clang-format off "test1234", "test[abcfoobar]2211", "bar[aaa][bbbb]sss", "kmod[p.b]lib", "[az]1234[AZ]", NULL, + // clang-format on }; char buf[PATH_MAX];