r3592: auto-cleanup the test.$$ log files in these test scripts on control-C
[samba.git] / source4 / script / tests / test_posix.sh
index 2448408ce5925dfb53f252862da1d6b5cafd3be0..92ed4fe52aa885967a90c3a8c2d61d35ea613841 100755 (executable)
@@ -17,6 +17,8 @@ start="$4"
 shift 3
 
 testit() {
+   trap "rm -f test.$$" EXIT
+
    cmdline="$*"
    if ! $cmdline > test.$$ 2>&1; then
        cat test.$$;