mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 04:28:57 +00:00
hush: fixes to testsuite
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
ebee410fe2
commit
cc461736d6
3
shell/hush_test/hush-bugs/export_exp.tests → shell/hush_test/hush-bugs/export_exp.tests.disabled
Executable file → Normal file
3
shell/hush_test/hush-bugs/export_exp.tests → shell/hush_test/hush-bugs/export_exp.tests.disabled
Executable file → Normal file
@ -1,3 +1,6 @@
|
|||||||
|
# This test shows a very special handling of export and local
|
||||||
|
# builtins by bash.
|
||||||
|
|
||||||
v="a=aa0 b=bb0"
|
v="a=aa0 b=bb0"
|
||||||
# only 1st arg should be expanded in multiple words
|
# only 1st arg should be expanded in multiple words
|
||||||
export $v c=$v
|
export $v c=$v
|
@ -11,10 +11,9 @@ trap 'bad: caught WINCH' WINCH
|
|||||||
# With TERM we'll check whether it is reset
|
# With TERM we'll check whether it is reset
|
||||||
trap 'bad: caught TERM' TERM
|
trap 'bad: caught TERM' TERM
|
||||||
|
|
||||||
# using bash, because we don't have $PPID (yet)
|
(trap; "$THIS_SH" -c 'kill -HUP $PPID'; echo Ok)
|
||||||
(trap; bash -c 'kill -HUP $PPID'; echo Ok)
|
(trap; "$THIS_SH" -c 'kill -QUIT $PPID'; echo Ok)
|
||||||
(trap; bash -c 'kill -QUIT $PPID'; echo Ok)
|
(trap; "$THIS_SH" -c 'kill -SYS $PPID'; echo Ok)
|
||||||
(trap; bash -c 'kill -SYS $PPID'; echo Ok)
|
(trap; "$THIS_SH" -c 'kill -WINCH $PPID'; echo Ok)
|
||||||
(trap; bash -c 'kill -WINCH $PPID'; echo Ok)
|
(trap; "$THIS_SH" -c 'kill -TERM $PPID'; echo Bad: TERM is not reset)
|
||||||
(trap; bash -c 'kill -TERM $PPID'; echo Bad: TERM is not reset)
|
|
||||||
echo Done
|
echo Done
|
||||||
|
Loading…
Reference in New Issue
Block a user