1 ;;;; miscellaneous tests of LOOP-related stuff
3 ;;;; This software is part of the SBCL system. See the README file for
6 ;;;; While most of SBCL is derived from the CMU CL system, the test
7 ;;;; files (like this one) were written from scratch after the fork
10 ;;;; This software is in the public domain and is provided with
11 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
12 ;;;; more information.
14 ;;; As reported by Gregory Wright sbcl-devel 2002-07-15, SBCL 0.7.5
15 ;;; didn't honor the LOAD :IF-DOES-NOT-EXIST argument when the type of
16 ;;; the LOADed file was specified.
18 (with-test (:name
:nonexistent
)
19 (assert (null (load "i-am-not" :if-does-not-exist nil
)))
20 (assert (null (load "i-am-not.lisp" :if-does-not-exist nil
)))
22 ;; In 1.0.17, LOAD didn't error when the file didn't exist and
23 ;; IF-DOES-NOT-EXIST was true.
24 (assert (typep (nth-value 1 (ignore-errors (load "i-am-not"))) 'file-error
))
25 (assert (typep (nth-value 1 (ignore-errors (load "i-am-not" :if-does-not-exist t
))) 'file-error
)))
27 (with-test (:name
:nested-compile-errors
)
32 (load "data/wonky1.lisp")))