0.7.7.21:
[sbcl.git] / tests / run-tests.sh
index 6fe86dd..df6d40e 100644 (file)
@@ -19,7 +19,8 @@
 # pathname, but now we take care to bind it to an absolute pathname (still
 # generated relative to `pwd` in the tests/ directory) so that tests
 # can chdir before invoking SBCL and still work.
-export SBCL="${1:-`pwd`/../src/runtime/sbcl --core `pwd`/../output/sbcl.core --noinform --sysinit /dev/null --userinit /dev/null --noprint --noprogrammer}"
+SBCL="${1:-`pwd`/../src/runtime/sbcl --core `pwd`/../output/sbcl.core --noinform --sysinit /dev/null --userinit /dev/null --noprint --disable-debugger}"
+export SBCL
 echo /running tests on SBCL=\'$SBCL\'
 
 # "Ten four" is the closest numerical slang I can find to "OK", so
@@ -99,7 +100,11 @@ for f in *.pure-cload.lisp; do
        echo //running $f test
        $SBCL <<EOF ; tenfour
                (compile-file "$f")
-               (progn (load *) (sb-ext:quit :unix-status 104))
+                (progn
+                  (unwind-protect
+                 (load *)
+                   (ignore-errors (delete-file (compile-file-pathname "$f"))))
+                  (sb-ext:quit :unix-status 104))
 EOF
     fi
 done
@@ -113,7 +118,11 @@ for f in *.impure-cload.lisp; do
        echo //running $f test
        $SBCL <<EOF ; tenfour
                (compile-file "$f")
-               (progn (load *) (sb-ext:quit :unix-status 104))
+                (progn
+                  (unwind-protect
+                 (load *)
+                   (ignore-errors (delete-file (compile-file-pathname "$f"))))
+                  (sb-ext:quit :unix-status 104))
 EOF
     fi
 done