summaryrefslogtreecommitdiff
path: root/source4/script/tests/test_posix.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-07 10:02:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:36 -0500
commit51353ac5595c916171bbc23481ad7023037faf27 (patch)
tree03b8e93b42e366ba62eeaa88d64f0b118e3cbe22 /source4/script/tests/test_posix.sh
parent70bb74eefd364908ec1234dd5a3ecf7090f7fad5 (diff)
downloadsamba-51353ac5595c916171bbc23481ad7023037faf27.tar.gz
samba-51353ac5595c916171bbc23481ad7023037faf27.tar.bz2
samba-51353ac5595c916171bbc23481ad7023037faf27.zip
r3592: auto-cleanup the test.$$ log files in these test scripts on control-C
(This used to be commit a07bca1707857a33d50172432336b90e3da8c854)
Diffstat (limited to 'source4/script/tests/test_posix.sh')
-rwxr-xr-xsource4/script/tests/test_posix.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/script/tests/test_posix.sh b/source4/script/tests/test_posix.sh
index 2448408ce5..92ed4fe52a 100755
--- a/source4/script/tests/test_posix.sh
+++ b/source4/script/tests/test_posix.sh
@@ -17,6 +17,8 @@ start="$4"
shift 3
testit() {
+ trap "rm -f test.$$" EXIT
+
cmdline="$*"
if ! $cmdline > test.$$ 2>&1; then
cat test.$$;