aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-tclsh-fork.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-tclsh-fork.sh')
-rw-r--r--test/test-tclsh-fork.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-tclsh-fork.sh b/test/test-tclsh-fork.sh
new file mode 100644
index 0000000..e9dec66
--- /dev/null
+++ b/test/test-tclsh-fork.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# Check that tclsh doesn't hang. Note that the timeout is not needed to
+# reproduce the hang in tclsh, it's only there to ensure that this test script
+# doesn't hang in case of a failing test.
+timeout 2s bash -c "echo 'open {|true} r+' | tclsh"