Briefly explain the to-be-commited #+linkage-space patch
[sbcl.git] / tests / load.pure.lisp
blobe703b8af3bc19e420159d99f0d5a4f3b7701ee8b
1 ;;;; miscellaneous tests of LOOP-related stuff
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
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
8 ;;;; from CMU CL.
9 ;;;;
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)
28 (assert (nth-value 5
29 (checked-compile
30 `(lambda ()
31 (macrolet ((x ()
32 (load "data/wonky1.lisp")))
33 (x)))
34 :allow-failure t))))