Skip to content

Merge TEST_F_FORK() into TEST_F()

Mickaël Salaün kvm linux-kselftest linux-security-module lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests/landlock: Redefine TEST_F() as TEST_F_FORK()tools/testing/selftests/landlock/common.h+5 -10 replies
2/2selftests/harness: Merge TEST_F_FORK() into TEST_F()tools/testing/selftests/kselftest_harness.h tools/testing/selftests/landlock/common.h tools/testing/selftests/landlock/fs_test.c+48 -1080 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] Merge TEST_F_FORK() into TEST_F()

Hi,

This is a long due cleanup to merge TEST_F_FORK() into TEST_F().

This second version includes Jakub's "child" default value fix, proper signal handling (TEST_SIGNAL), and move fixture setup and teardown to the grandchild process by default.

This also removes the step counter and simplify Landlock's test teardowns by removing some umount calls.

See https://lore.kernel.org/r/[email protected]

Regards,

Mickaël Salaün (2):
selftests/landlock: Redefine TEST_F() as TEST_F_FORK() selftests/harness: Merge TEST_F_FORK() into TEST_F()

 tools/testing/selftests/kselftest_harness.h | 72 ++++++++++-----------
 tools/testing/selftests/landlock/common.h   | 58 +----------------
 tools/testing/selftests/landlock/fs_test.c  | 22 +++----
 3 files changed, 48 insertions(+), 104 deletions(-)

base-commit: 90d35da658da8cff0d4ecbb5113f5fac9d00eb72

Signature · 1 line
2.44.0