tests: make a long running test responsive to Ctrl-C
commit934940b561fbf6d1adff862c6294968fc7e55e8c
authorPádraig Brady <P@draigBrady.com>
Sat, 10 Oct 2015 02:59:53 +0000 (10 03:59 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 10 Oct 2015 10:21:34 +0000 (10 11:21 +0100)
tree3ab5e83848ef9a3e9565c141d0d126ac65874a45
parentc1dba59a79249f8e9f546fd3453da32a17ccaeb1
tests: make a long running test responsive to Ctrl-C

* tests/misc/sort-compress-hang.sh: Use --foreground with the
timeout(1) command (noting the caveats), to run the sort command
in the foreground program group, and thus be responsive to Ctrl-C.
This very_expensive_ test takes over a minute on a i3-2310M,
with RAM backed /tmp.
tests/misc/sort-compress-hang.sh