From f962927fc10a7bd2698990abec9578d7576503a7 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 8 Sep 2024 11:38:12 +0100 Subject: [PATCH] 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 --- testsuite/test-new-module.c | 2 ++ testsuite/test-util.c | 2 ++ 2 files changed, 4 insertions(+) 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]; -- 2.47.2