summaryrefslogtreecommitdiff
path: root/regress-driver
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-05 23:33:19 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-05 23:33:19 +0000
commitcacdbe98e2f454820ebf764171f9654acded8225 (patch)
treeda2935507067d2ff411ed23d80fef69344861460 /regress-driver
parentfddd31d1b218449931072a05b7f9b285f5b1ab81 (diff)
downloadgpsd-cacdbe98e2f454820ebf764171f9654acded8225.tar.gz
Clean up properly on signal.
Diffstat (limited to 'regress-driver')
-rwxr-xr-xregress-driver2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress-driver b/regress-driver
index b8ef6b40..a7121153 100755
--- a/regress-driver
+++ b/regress-driver
@@ -40,6 +40,7 @@ GPSFILTER="sed -e /^GPSD,X/d -e /^gpsd:/d -e /^gpsfake/d -e /GPS-DATA/d -e /WATC
case $mode in
regress)
echo "Testing the daemon..." >&2
+ trap 'rm -f $dir/test.chk $dir/test-whole.chk $dir/test-trunk.chk $dir/log-copy.chk $dir/diff $dir/diff-trunc; exit 1' 0 1 2 15
errors=0; total=0; notfound=0;
for f in $*; do
dir=`dirname $f`
@@ -61,7 +62,6 @@ case $mode in
fi
total=`expr $total + 1`;
done;
- rm -f $dir/test.chk $dir/test-trunc.chk $dir/test-whole.chk $dir/diff $dir/diff-trunc;
if test $errors -gt 0; then
echo "Regression test FAILED: $errors errors in $total tests total ($notfound not found).";
exit 1;