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)
commit4598d9abf4215e1e371a35683350d50122793c80
tree9b7f6b96b4be732259a02044286335a1b31ab125
parent06a1c40a09a8dded4bf0e7e3ccbda6bddcccd7c8
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