]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/landlock: Add clang-format exceptions
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:05:09 +0000 (18:05 +0200)
committerMickaël Salaün <mic@digikod.net>
Mon, 9 May 2022 10:31:11 +0000 (12:31 +0200)
commita7f4cfa81759b31420aabef5041955ce6fb92b50
tree9b7f6b96b4be732259a02044286335a1b31ab125
parentdfc71bb6b8ba56223d734f8f8763d08b3c994932
selftests/landlock: Add clang-format exceptions

In preparation to a following commit, add clang-format on and
clang-format off stanzas around constant definitions and the TEST_F_FORK
macro.  This enables to keep aligned values, which is much more readable
than packed definitions.

Add other clang-format exceptions for FIXTURE() and
FIXTURE_VARIANT_ADD() declarations to force space before open brace,
which is reported by checkpatch.pl .

Link: https://lore.kernel.org/r/20220506160513.523257-4-mic@digikod.net
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/common.h
tools/testing/selftests/landlock/fs_test.c
tools/testing/selftests/landlock/ptrace_test.c