diff options
| author | Danish Khateeb <danishkhateeb03@gmail.com> | 2026-09-23 15:56:22 -0500 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-09-24 10:49:14 +0200 |
| commit | 61fb00d6efeeeb9fd65c81db3bd8b2ac140f573c (patch) | |
| tree | 8067f6b264aa4fae5fdc6c611e3f30771de2d5eb /tools/perf/python | |
| parent | 368fae47c6cae28a312c5dc86e5bdb8f9369fd26 (diff) | |
| download | linux-next-61fb00d6efeeeb9fd65c81db3bd8b2ac140f573c.tar.gz linux-next-61fb00d6efeeeb9fd65c81db3bd8b2ac140f573c.zip | |
selftests/nolibc: add tests for the wait status macros
Until the previous commit, WIFSIGNALED() was true for status 0, which is
what waitpid() reports for a child that exits with 0. nolibc-test did not
notice, because its only use of WIFSIGNALED(), in the abort test, also
checks WTERMSIG().
Add tests for WEXITSTATUS(), WIFEXITED(), WIFSIGNALED() and WTERMSIG(),
on the statuses the kernel reports for an exit with 0 or 0x12, a kill by
SIGKILL, a SIGSEGV with the core dump flag, and a stop by SIGSTOP.
Assisted-by: LLM
Signed-off-by: Danish Khateeb <danishkhateeb03@gmail.com>
Link: https://patch.msgid.link/20260923205622.1123270-3-danishkhateeb03@gmail.com
[Thomas: Use EXPECT_EQ() for all assertions]
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/perf/python')
0 files changed, 0 insertions, 0 deletions
