From 532dec0849dcdc3e15e530ac40a8168f146a41cd Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 4 Feb 2025 11:18:34 -0500 Subject: tests/posix/exec_sigmask: Make portable The test was Linux-only, and didn't pass on at least mips64el due to a different signal mask size. The new version should be fully portable, but will hang forever on failure. Link: https://buildd.debian.org/status/fetch.php?pkg=bfs&arch=mips64el&ver=4.0.5-1&stamp=1737761227&raw=0 --- tests/posix/exec_sigmask.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/posix/exec_sigmask.sh b/tests/posix/exec_sigmask.sh index e01c05e..d1192a4 100644 --- a/tests/posix/exec_sigmask.sh +++ b/tests/posix/exec_sigmask.sh @@ -1,4 +1,16 @@ # Regression test: restore the signal mask after fork() -test "$UNAME" = "Linux" || skip -bfs_diff /proc/self/status -exec grep '^SigBlk:' {} + +cd "$TEST" +mkfifo p1 p2 + +{ + # Get the PID of `sh` + read -r pid p1 && read -r _