X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fload.pure.lisp;h=eed5f45bf8f9fe1c24dc609385c84d06be5510ac;hb=HEAD;hp=f12a9bd30a07c97a136b147719b0dd371b716cd0;hpb=b84b7f3a3c58909c6e252aba8c97148c9ad917b7;p=sbcl.git diff --git a/tests/load.pure.lisp b/tests/load.pure.lisp index f12a9bd..eed5f45 100644 --- a/tests/load.pure.lisp +++ b/tests/load.pure.lisp @@ -6,7 +6,7 @@ ;;;; While most of SBCL is derived from the CMU CL system, the test ;;;; files (like this one) were written from scratch after the fork ;;;; from CMU CL. -;;;; +;;;; ;;;; This software is in the public domain and is provided with ;;;; absolutely no warranty. See the COPYING and CREDITS files for ;;;; more information. @@ -20,3 +20,8 @@ (load "i-am-not.lisp" :if-does-not-exist nil) (load "i-am-not.fasl" :if-does-not-exist nil) (load "i-am-not.misc-garbage" :if-does-not-exist nil) + +;;; In 1.0.17, LOAD didn't error when the file didn't exist and +;;; IF-DOES-NOT-EXIST was true. +(assert (typep (nth-value 1 (ignore-errors (load "i-am-not"))) 'file-error)) +(assert (typep (nth-value 1 (ignore-errors (load "i-am-not" :if-does-not-exist t))) 'file-error))