X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fpackage-locks.impure.lisp;h=77b2a9edfa9b043bb2fd46fe27a7b4251da76170;hb=5be53bd5a87605b076891aafb2d74caac1357506;hp=f535e9e750cadb973b8fd8b47a9d8b16143f51f2;hpb=175c318c892b0627b36fa3c4db66f59680242204;p=sbcl.git diff --git a/tests/package-locks.impure.lisp b/tests/package-locks.impure.lisp index f535e9e..77b2a9e 100644 --- a/tests/package-locks.impure.lisp +++ b/tests/package-locks.impure.lisp @@ -436,14 +436,17 @@ package-lock-violation)))) ;;;; Program-errors from lexical violations -(reset-test) -(set-test-locks t) -(dolist (pair *illegal-compile-time-forms-alist*) - (destructuring-bind (sym . form) pair +;;;; In addition to that, this is also testing for bug 387 +(with-test (:name :program-error + :fails-on :sbcl) + (reset-test) + (set-test-locks t) + (dolist (pair *illegal-compile-time-forms-alist*) + (destructuring-bind (sym . form) pair (declare (ignore sym)) - (let ((fun (compile nil `(lambda () - ,form)))) - (assert (raises-error? (funcall fun) program-error))))) + (let ((fun (compile nil `(lambda () + ,form)))) + (assert (raises-error? (funcall fun) program-error)))))) ;;;; See that trace on functions in locked packages doesn't break ;;;; anything.