X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ffinalize.test.sh;h=3ba4997d7b389ff23df6962d99257b2a3b5b4e22;hb=04d819bb1a2e64de4e997203b9516229bb73c686;hp=222f1fb19afc91c461782e88b69633438856b9de;hpb=fd526bc66c53616a2e757323cbda0271c72b3d54;p=sbcl.git diff --git a/tests/finalize.test.sh b/tests/finalize.test.sh index 222f1fb..3ba4997 100644 --- a/tests/finalize.test.sh +++ b/tests/finalize.test.sh @@ -19,12 +19,12 @@ ${SBCL:-sbcl} < /dev/null & (let ((junk (mapcar (lambda (_) (declare (ignore _)) (let ((x (gensym))) - (finalize x (lambda () - ;; cons in finalizer + (finalize x (lambda () + ;; cons in finalizer (setf *tmp* (make-list 10000)) - (incf *count*))) - x)) - (make-list 10000)))) + (incf *count*))) + x)) + (make-list 10000)))) (setf junk (foo junk)) (foo junk)) @@ -46,19 +46,21 @@ WAITED=0 echo "Waiting for SBCL to finish stress-testing finalizers" while true; do if [ -f finalize-test-passed ]; then - echo "OK" - exit 104 # Success + echo "OK" + rm finalize-test-passed + exit 104 # Success elif [ -f finalize-test-failed ]; then - echo "Failed" - exit 1 # Failure + echo "Failed" + rm finalize-test-failed + exit 1 # Failure fi sleep 1 WAITED=$(($WAITED+1)) if (($WAITED>60)); then - echo - echo "timeout, killing SBCL" - kill -9 $SBCL_PID - exit 1 # Failure, SBCL probably hanging in GC + echo + echo "timeout, killing SBCL" + kill -9 $SBCL_PID + exit 1 # Failure, SBCL probably hanging in GC fi done