path: root/tests/aux/touchfile
authorSergey Poznyakoff <>2019-06-02 08:57:42 (GMT)
committer Sergey Poznyakoff <>2019-06-02 08:57:42 (GMT)
commit685600d72b0c300f94c0c69dc0a16c4ebb230a21 (patch) (side-by-side diff)
tree3a3ea6f43a8cdc543118e2cf81d29628dc82f61f /tests/aux/touchfile
parentcc298a11a131b162f291d6ee27ba1d7598a1b6c4 (diff)
Rewrite the testsuite
The aim is to run pies in foreground if possible. Limit execution time using external wrapper. * src/pies.c: (_cb_redir): Consistently return 1 on errors. * tests/aux/sleepexit: New file. * tests/aux/startcheck: New file. * tests/aux/touchfile: Change arguments. * tests/aux/respawn: Rewrite. * tests/lines.c: New noinst program. * tests/to.c: New noinst program. * tests/.gitignore: Add new programs. * tests/ Update. * tests/ Use to to avoid hanging forever. Add missing popdef. * tests/ Use echo as component program. * tests/ Run pies in foreground. Use to to limit execution time. * tests/ Likewise. * tests/ Likewise. * tests/ Likewise. * tests/ Use sleepexit as component program. * tests/ Likewise.
Diffstat (limited to 'tests/aux/touchfile') (more/less context) (ignore whitespace changes)
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/aux/touchfile b/tests/aux/touchfile
index b9d92a3..a3a2668 100755
--- a/tests/aux/touchfile
+++ b/tests/aux/touchfile
@@ -1,7 +1,7 @@
-touch $dir/$tag
-sleep $time
+echo $tag > $file
+test $time -ne 0 && sleep $time

Return to:

Send suggestions and report system problems to the System administrator.