diff options
Diffstat (limited to '')
| -rwxr-xr-x | shell/hush_test/hush-signals/catch.tests | 3 | ||||
| -rwxr-xr-x | shell/hush_test/hush-signals/signal1.tests | 3 | ||||
| -rwxr-xr-x | shell/hush_test/hush-signals/signal8.tests | 3 | ||||
| -rwxr-xr-x | shell/hush_test/hush-signals/signal_read2.tests | 3 | ||||
| -rwxr-xr-x | shell/hush_test/hush-signals/subshell.tests | 3 |
5 files changed, 15 insertions, 0 deletions
diff --git a/shell/hush_test/hush-signals/catch.tests b/shell/hush_test/hush-signals/catch.tests index d2a21d17e..4b1a08e8f 100755 --- a/shell/hush_test/hush-signals/catch.tests +++ b/shell/hush_test/hush-signals/catch.tests | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | # If job control is disabled, skip the test ("User defined signal 2" text not emitted) | ||
| 2 | test "`type jobs`" = "jobs is a shell builtin" || exit 77 | ||
| 3 | |||
| 1 | # avoid ugly warnings about signals not being caught | 4 | # avoid ugly warnings about signals not being caught |
| 2 | trap ":" USR1 USR2 | 5 | trap ":" USR1 USR2 |
| 3 | 6 | ||
diff --git a/shell/hush_test/hush-signals/signal1.tests b/shell/hush_test/hush-signals/signal1.tests index 61943467a..c83fa1254 100755 --- a/shell/hush_test/hush-signals/signal1.tests +++ b/shell/hush_test/hush-signals/signal1.tests | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | # If job control is disabled, skip the test | ||
| 2 | test "`type jobs`" = "jobs is a shell builtin" || exit 77 | ||
| 3 | |||
| 1 | trap "echo got signal" USR1 | 4 | trap "echo got signal" USR1 |
| 2 | 5 | ||
| 3 | for try in 1 2 3 4 5; do | 6 | for try in 1 2 3 4 5; do |
diff --git a/shell/hush_test/hush-signals/signal8.tests b/shell/hush_test/hush-signals/signal8.tests index 731af7477..cd5790164 100755 --- a/shell/hush_test/hush-signals/signal8.tests +++ b/shell/hush_test/hush-signals/signal8.tests | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | # If job control is disabled, skip the test | ||
| 2 | test "`type jobs`" = "jobs is a shell builtin" || exit 77 | ||
| 3 | |||
| 1 | "$THIS_SH" -c ' | 4 | "$THIS_SH" -c ' |
| 2 | exit_func() { | 5 | exit_func() { |
| 3 | echo "Removing traps" | 6 | echo "Removing traps" |
diff --git a/shell/hush_test/hush-signals/signal_read2.tests b/shell/hush_test/hush-signals/signal_read2.tests index eab5b9b5b..11accd5ab 100755 --- a/shell/hush_test/hush-signals/signal_read2.tests +++ b/shell/hush_test/hush-signals/signal_read2.tests | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | # If job control is disabled, skip the test ("Hangup" not emitted) | ||
| 2 | test "`type jobs`" = "jobs is a shell builtin" || exit 77 | ||
| 3 | |||
| 1 | $THIS_SH -c ' | 4 | $THIS_SH -c ' |
| 2 | (sleep 1; kill -HUP $$) & | 5 | (sleep 1; kill -HUP $$) & |
| 3 | while true; do | 6 | while true; do |
diff --git a/shell/hush_test/hush-signals/subshell.tests b/shell/hush_test/hush-signals/subshell.tests index d877f2b82..856c922d3 100755 --- a/shell/hush_test/hush-signals/subshell.tests +++ b/shell/hush_test/hush-signals/subshell.tests | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | # Non-empty traps should be reset in subshell | 1 | # Non-empty traps should be reset in subshell |
| 2 | 2 | ||
| 3 | # If job control is disabled, skip the test ("Terminated" text not emitted) | ||
| 4 | test "`type jobs`" = "jobs is a shell builtin" || exit 77 | ||
| 5 | |||
| 3 | # HUP is special in interactive shells | 6 | # HUP is special in interactive shells |
| 4 | trap '' HUP | 7 | trap '' HUP |
| 5 | # QUIT is always special | 8 | # QUIT is always special |
