diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-29 12:01:38 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-30 02:42:34 +0300 |
| commit | a7202a1fb911f72c309380b42c0ff995c05ba94c (patch) | |
| tree | b808fc297e4cf4dd719778f57dd54c5928986460 /tests/testsuite.at | |
| parent | d48439b1e81cc0d0835c63a8bac14562b4f4b5c7 (diff) | |
GTK: implemented --detach|-d option for detaching from controlling terminal
This is useful to launch from a terminal without "blocking" this terminal.
There are tools like nohup and daemonize (BSD) to do the same, but having it
builtin is shorter to write.
Diffstat (limited to 'tests/testsuite.at')
| -rw-r--r-- | tests/testsuite.at | 9 |
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]) |
