aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index a360840..09c4df2 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -460,6 +460,15 @@ AT_CHECK([[$SCITECO -e "@EI'^EQ[\$SCITECOPATH]/opener.tes' M[opener] EF .-11\"N(
AT_CHECK([[$SCITECO -e "@EI'^EQ[\$SCITECOPATH]/opener.tes' M[opener] EF EJ-2\"N(0/0)'" -S +1 data.123]], 0, ignore, ignore)
AT_CLEANUP
+AT_BANNER([Program features])
+
+AT_SETUP([Detaching from terminal])
+AT_SKIP_IF([$SCITECO --help | $GREP -qvz '\-\-detach'])
+AT_CHECK([$SCITECO --detach -e '23= @EW/test.txt/' && sleep 1], 0, [], [])
+# FIXME: What if the "daemon" takes longer than 1 second to write test.txt?
+AT_FAIL_IF([! test -f test.txt])
+AT_CLEANUP
+
AT_BANNER([Regression Tests])
AT_SETUP([Glob patterns with character classes])