linux/tools/testing/selftests/nolibc
Thomas Weißschuh d543d9ddf5 selftests/nolibc: disable coredump via setrlimit
qemu-user does has its own implementation of coredumping.
That implementation does not respect the call to
prctl(PR_SET_DUMPABLE, 0) in run_protection().
This leads to a coredump for every test run under qemu-user.

Use also setrlimit() to inhibit coredump creation which is respected by
qemu-user.

Link: https://lore.kernel.org/qemu-devel/20231115-qemu-user-dumpable-v1-2-edbe7f0fbb02@t-8ch.de/
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/lkml/20231123-nolibc-rlimit-v1-3-a428b131de2a@weissschuh.net/
Acked-by: Willy Tarreau <w@1wt.eu>
2023-12-11 22:38:37 +01:00
..
.gitignore selftests/nolibc: add script to run testsuite 2023-12-11 22:38:17 +01:00
Makefile tools/nolibc: mips: add support for PIC 2023-12-11 22:38:30 +01:00
nolibc-test-linkage.c selftests/nolibc: add tests for multi-object linkage 2023-10-12 21:14:20 +02:00
nolibc-test-linkage.h selftests/nolibc: add tests for multi-object linkage 2023-10-12 21:14:20 +02:00
nolibc-test.c selftests/nolibc: disable coredump via setrlimit 2023-12-11 22:38:37 +01:00
run-tests.sh selftests/nolibc: run-tests.sh: enable testing via qemu-user 2023-12-11 22:38:29 +01:00