diff options
Diffstat (limited to 'tests/testsuite.at')
| -rw-r--r-- | tests/testsuite.at | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index 09c4df2..9d877a7 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -463,10 +463,8 @@ 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_SKIP_IF([$SCITECO --help | $GREP -qvz -e '--detach']) +AT_CHECK([[timeout 10 $SHELL -c "$SCITECO --detach -e '23= @EW/test.txt/' && while [ ! -f test.txt ]; do sleep 1; done"]], 0, [], []) AT_CLEANUP AT_BANNER([Regression Tests]) |
