selftests/nolibc: prevent coredumps during test execution
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 26 May 2023 07:51:20 +0000 (09:51 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 9 Jun 2023 18:46:09 +0000 (11:46 -0700)
commit9a75575b81b5639f7ca82c9701fb199401fd6471
tree7f1c9e1e07f33198c326376c1aacecee1ce537ce
parent208aa9d94c1181d8dff8e60d681e3b6cf0b37fae
selftests/nolibc: prevent coredumps during test execution

The child process forked during stackprotector tests intentionally gets
killed with SIGABRT. By default this will trigger writing a coredump.
The writing of the coredump can spam the systems coredump machinery and
take some time.

Timings for the full run of nolibc-test:
Before: 200ms
After:   20ms

This is on a desktop x86 system with systemd-coredumpd enabled.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/nolibc/nolibc-test.c