adjust the new MALLOC-FAILURE test for 32-bit builds
authorNikodemus Siivola <nikodemus@random-state.net>
Mon, 5 Dec 2011 11:18:08 +0000 (13:18 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Mon, 5 Dec 2011 11:26:20 +0000 (13:26 +0200)
  ...where malloc of (1- array-total-size-limit) bytes may actually
  succeed initially.

tests/alien.impure.lisp

index b490961..cf708ef 100644 (file)
 (with-test (:name :malloc-failure)
   (assert (eq :enomem
               (handler-case
-                  (sb-alien:make-alien char (1- array-total-size-limit))
+                  (loop repeat 128
+                        collect (sb-alien:make-alien char (1- array-total-size-limit)))
                 (storage-condition ()
                   :enomem)))))