X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fgc.impure.lisp;h=c00438b57867331ba6be337e85976282f43a717a;hb=f2db6743b1fadeea9e72cb583d857851c87efcd4;hp=e1dd98dc80e34aa5b755c427997bcc54cb6bc6bc;hpb=47eb330ef0f3b99d24c0e24d897b757f16950c4b;p=sbcl.git diff --git a/tests/gc.impure.lisp b/tests/gc.impure.lisp index e1dd98d..c00438b 100644 --- a/tests/gc.impure.lisp +++ b/tests/gc.impure.lisp @@ -31,15 +31,7 @@ (let ((gc-happend nil)) (push (lambda () (setq gc-happend t)) sb-ext:*after-gc-hooks*) - ;; check GC-{ON,OFF} works and gc is deferred - (gc-off) - (gc) - (assert (not gc-happend)) - (gc-on) - (assert gc-happend) - ;; check that WITHOUT-GCING defers explicit gc - (setq gc-happend nil) (sb-sys:without-gcing (gc) (assert (not gc-happend))) @@ -58,16 +50,5 @@ (assert (not gc-happend))) ;; give the hook time to run (sleep 1) - (assert gc-happend)) - - ;; check GC-ON works even in a WITHOUT-GCING - (setq gc-happend nil) - (sb-sys:without-gcing - (gc) - (assert (not gc-happend)) - (gc-on) - (assert gc-happend) - (setq gc-happend nil)) - (assert (not gc-happend))) + (assert gc-happend))) -(sb-ext:quit :unix-status 104)