test-compile-file-failure.script 603 Bytes
Newer Older
1
;;; -*- Lisp -*-
2 3
(def-test-system test-compile-file-failure
  :components ((:file "test-compile-file-failure")))
4

5
(assert (handler-case
6 7 8
	    (let ((*compile-file-failure-behaviour* :warn))
	      (load-system 'test-compile-file-failure :force t)
	      t)
9
          (compile-file-error () nil)))
10

11 12
(reset-session)

13 14 15 16 17 18
(with-expected-failure (#+gcl "GCL failure to report compile-file error")
  (assert (handler-case
              (let ((*compile-file-failure-behaviour* :error))
                (load-system 'test-compile-file-failure :force t)
                nil)
            (compile-file-error () t))))