diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-10 10:19:22 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-10 10:19:22 +0200 |
commit | cc461736d6ca3c3b809390d8d7873a136e3b899a (patch) | |
tree | 4e86544756152ffa279ac6d029c083c0a22291b9 /shell | |
parent | ebee410fe2500d6bd5980032d0b183494f509c9b (diff) | |
download | busybox-w32-cc461736d6ca3c3b809390d8d7873a136e3b899a.tar.gz busybox-w32-cc461736d6ca3c3b809390d8d7873a136e3b899a.tar.bz2 busybox-w32-cc461736d6ca3c3b809390d8d7873a136e3b899a.zip |
hush: fixes to testsuite
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'shell')
-rw-r--r--[-rwxr-xr-x] | shell/hush_test/hush-bugs/export_exp.tests.disabled (renamed from shell/hush_test/hush-bugs/export_exp.tests) | 3 | ||||
-rwxr-xr-x | shell/hush_test/hush-trap/subshell.tests | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/shell/hush_test/hush-bugs/export_exp.tests b/shell/hush_test/hush-bugs/export_exp.tests.disabled index 91f57aa2c..0913fd3f2 100755..100644 --- a/shell/hush_test/hush-bugs/export_exp.tests +++ b/shell/hush_test/hush-bugs/export_exp.tests.disabled | |||
@@ -1,3 +1,6 @@ | |||
1 | # This test shows a very special handling of export and local | ||
2 | # builtins by bash. | ||
3 | |||
1 | v="a=aa0 b=bb0" | 4 | v="a=aa0 b=bb0" |
2 | # only 1st arg should be expanded in multiple words | 5 | # only 1st arg should be expanded in multiple words |
3 | export $v c=$v | 6 | export $v c=$v |
diff --git a/shell/hush_test/hush-trap/subshell.tests b/shell/hush_test/hush-trap/subshell.tests index 045294bf4..d877f2b82 100755 --- a/shell/hush_test/hush-trap/subshell.tests +++ b/shell/hush_test/hush-trap/subshell.tests | |||
@@ -11,10 +11,9 @@ trap 'bad: caught WINCH' WINCH | |||
11 | # With TERM we'll check whether it is reset | 11 | # With TERM we'll check whether it is reset |
12 | trap 'bad: caught TERM' TERM | 12 | trap 'bad: caught TERM' TERM |
13 | 13 | ||
14 | # using bash, because we don't have $PPID (yet) | 14 | (trap; "$THIS_SH" -c 'kill -HUP $PPID'; echo Ok) |
15 | (trap; bash -c 'kill -HUP $PPID'; echo Ok) | 15 | (trap; "$THIS_SH" -c 'kill -QUIT $PPID'; echo Ok) |
16 | (trap; bash -c 'kill -QUIT $PPID'; echo Ok) | 16 | (trap; "$THIS_SH" -c 'kill -SYS $PPID'; echo Ok) |
17 | (trap; bash -c 'kill -SYS $PPID'; echo Ok) | 17 | (trap; "$THIS_SH" -c 'kill -WINCH $PPID'; echo Ok) |
18 | (trap; bash -c 'kill -WINCH $PPID'; echo Ok) | 18 | (trap; "$THIS_SH" -c 'kill -TERM $PPID'; echo Bad: TERM is not reset) |
19 | (trap; bash -c 'kill -TERM $PPID'; echo Bad: TERM is not reset) | ||
20 | echo Done | 19 | echo Done |