aboutsummaryrefslogtreecommitdiff
path: root/shell/msh_test/msh-execution/many_continues.tests
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2015-05-15 10:20:47 +0200
committerBjørn Mork <bjorn@mork.no>2015-05-15 10:20:47 +0200
commit73b16af8feec390afbabd9356d6e5e83c0390838 (patch)
tree3730020ba2f9caeb9d7815a975af51830b51ce11 /shell/msh_test/msh-execution/many_continues.tests
busybox: imported from http://www.busybox.net/downloads/busybox-1.13.3.tar.bz2busybox-1.13.3
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'shell/msh_test/msh-execution/many_continues.tests')
-rwxr-xr-xshell/msh_test/msh-execution/many_continues.tests15
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/msh_test/msh-execution/many_continues.tests b/shell/msh_test/msh-execution/many_continues.tests
new file mode 100755
index 0000000..86c729a
--- /dev/null
+++ b/shell/msh_test/msh-execution/many_continues.tests
@@ -0,0 +1,15 @@
+if test $# = 0; then
+ # Child will kill us in 1 second
+ "$THIS_SH" "$0" $$ &
+
+ # Loop many, many times
+ trap 'echo OK; exit 0' 15
+ while true; do
+ continue
+ done
+ echo BAD
+ exit 1
+fi
+
+sleep 1
+kill $1