From 493dba2f95823d26ae34e85adb29052e1f86b1e8 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Thu, 28 Sep 2023 12:04:50 -0700 Subject: [PATCH] testsuite: fix trap statement Problem: a script generated in t2001-imp-kill.t with a shebang invoking /bin/sh includes a trap statement referencing SIGTERM, but this fails with "trap: SIGTERM: bad trap" s/SIGTERM/TERM/ Fixes #177 --- t/t2001-imp-kill.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t2001-imp-kill.t b/t/t2001-imp-kill.t index 4756260..796e95a 100755 --- a/t/t2001-imp-kill.t +++ b/t/t2001-imp-kill.t @@ -175,7 +175,7 @@ test_expect_success NO_CHAIN_LINT,SUID_ENABLED,USER_CGROUP \ printf "\$PPID\n" >$(pwd)/sleeper.pid /bin/sleep "\$@" & pid=\$! && - trap "echo got SIGTERM; kill \$pid" SIGTERM + trap "echo got SIGTERM; kill \$pid" TERM wait echo sleep exited with \$? >&2 EOF