summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/exitcode_trap2.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2020-02-26 09:05:52 +0100
committerDenys Vlasenko2020-02-26 09:05:52 +0100
commit9aa751b08ab03d6396f86c3df77937a19687981b (patch)
treedf06300822ac071de0b913c6168f65cf8ffbe3eb /shell/hush_test/hush-misc/exitcode_trap2.tests
parent1555895b4af44ce47fe2365aec82e8e67c685f08 (diff)
downloadbusybox-9aa751b08ab03d6396f86c3df77937a19687981b.zip
busybox-9aa751b08ab03d6396f86c3df77937a19687981b.tar.gz
shells: fix exitcode_trapN tests to avoid races
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-misc/exitcode_trap2.tests')
-rwxr-xr-xshell/hush_test/hush-misc/exitcode_trap2.tests3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/hush_test/hush-misc/exitcode_trap2.tests b/shell/hush_test/hush-misc/exitcode_trap2.tests
index f259774..aff6d51 100755
--- a/shell/hush_test/hush-misc/exitcode_trap2.tests
+++ b/shell/hush_test/hush-misc/exitcode_trap2.tests
@@ -3,7 +3,6 @@
$THIS_SH -c '
trap "false;exit" term
kill $$ &
- (exit 42)
- wait
+ (sleep 1; exit 42)
'
echo 42:$?