test-compile-file-failure.script 587 Bytes
Newer Older
1
;;; -*- Lisp -*-
2

3 4
(def-test-system test-compile-file-failure
  :components ((:file "test-compile-file-failure")))
5

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

12 13 14 15 16 17
(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))))