X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Falien.impure.lisp;h=b490961056936862a5161c2db63bd85058d35e8e;hb=a00ea11a89c9db677e60edf6832c905a4527b5cb;hp=f97e73c7a7bb11892c075453e06feeb0c8a4e8e2;hpb=1100ef9f0598e4b72c1dacaae530ca6a93de706b;p=sbcl.git diff --git a/tests/alien.impure.lisp b/tests/alien.impure.lisp index f97e73c..b490961 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,11 @@ (assert (equal "This comes from lisp!" (cast alien c-string))) (free-alien alien))) +(with-test (:name :malloc-failure) + (assert (eq :enomem + (handler-case + (sb-alien:make-alien char (1- array-total-size-limit)) + (storage-condition () + :enomem))))) + ;;; success