From 4859d498c7b80f8bc05621241fbb5c1ff7d80c83 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 18 Jan 2025 15:10:35 -0500 Subject: tests: Add a test for sigmask restoration --- tests/posix/exec_sigmask.out | 1 + tests/posix/exec_sigmask.sh | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 tests/posix/exec_sigmask.out create mode 100644 tests/posix/exec_sigmask.sh (limited to 'tests/posix') diff --git a/tests/posix/exec_sigmask.out b/tests/posix/exec_sigmask.out new file mode 100644 index 0000000..bb646f3 --- /dev/null +++ b/tests/posix/exec_sigmask.out @@ -0,0 +1 @@ +SigBlk: 0000000000000000 diff --git a/tests/posix/exec_sigmask.sh b/tests/posix/exec_sigmask.sh new file mode 100644 index 0000000..e01c05e --- /dev/null +++ b/tests/posix/exec_sigmask.sh @@ -0,0 +1,4 @@ +# Regression test: restore the signal mask after fork() + +test "$UNAME" = "Linux" || skip +bfs_diff /proc/self/status -exec grep '^SigBlk:' {} + -- cgit v1.2.3