busybox/shell/hush_test/hush-misc/sig_exitcode.tests
Denys Vlasenko c2ef7c6dad hush: if !JOBS, skip tests which wouldn't work
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2025-08-03 09:32:36 +02:00

12 lines
200 B
Text
Executable file

# If job control is disabled, skip the test
test "`type jobs`" = "jobs is a shell builtin" || exit 77
exec 2>&1
$THIS_SH -c 'kill -9 $$'
echo 137:$?
! $THIS_SH -c 'kill -9 $$'
echo 0:$?
echo Done