X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Falien.impure.lisp;h=cf708ef77a6c705b2e1a464e4aa3348d9e318783;hb=16fa00e83bc553a6436f0eac7ca9d8455f7763fa;hp=f97e73c7a7bb11892c075453e06feeb0c8a4e8e2;hpb=1100ef9f0598e4b72c1dacaae530ca6a93de706b;p=sbcl.git diff --git a/tests/alien.impure.lisp b/tests/alien.impure.lisp index f97e73c..cf708ef 100644 --- a/tests/alien.impure.lisp +++ b/tests/alien.impure.lisp @@ -264,8 +264,7 @@ ((foo (unsigned 32))) foo) -#+(or x86-64 x86) -(with-test (:name bug-316325) +(with-test (:name bug-316325 :skipped-on '(not (or :x86-64 :x86))) ;; This test works by defining a callback function that provides an ;; identity transform over a full-width machine word, then calling ;; it as if it returned a narrower type and checking to see if any @@ -325,4 +324,12 @@ (assert (equal "This comes from lisp!" (cast alien c-string))) (free-alien alien))) +(with-test (:name :malloc-failure) + (assert (eq :enomem + (handler-case + (loop repeat 128 + collect (sb-alien:make-alien char (1- array-total-size-limit))) + (storage-condition () + :enomem))))) + ;;; success