From 9aa751b08ab03d6396f86c3df77937a19687981b Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 26 Feb 2020 09:05:52 +0100 Subject: shells: fix exitcode_trapN tests to avoid races Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-misc/exitcode_trap2.tests | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shell/hush_test/hush-misc/exitcode_trap2.tests') diff --git a/shell/hush_test/hush-misc/exitcode_trap2.tests b/shell/hush_test/hush-misc/exitcode_trap2.tests index f259774bf..aff6d5187 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:$? -- cgit v1.2.3