X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fload.impure.lisp;h=829950c079edad38eeaeb4663ea8e96b4d6fedb7;hb=2e498cbcb062ff8b6e21703838e214c6427bffe8;hp=f0d45243029e1e1a9ef4d499dcb5934de4c523b9;hpb=8d60dc276cfcdb896e36b82160ad8c2065736f90;p=sbcl.git diff --git a/tests/load.impure.lisp b/tests/load.impure.lisp index f0d4524..829950c 100644 --- a/tests/load.impure.lisp +++ b/tests/load.impure.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. @@ -53,4 +53,18 @@ (when tmp-fasl (delete-file tmp-fasl)) (delete-file *tmp-filename*)))) -(quit :unix-status 104) +;;; As reported by David Tolpin *LOAD-PATHNAME* was not merged. +(progn + (defvar *saved-load-pathname*) + (with-open-file (s *tmp-filename* + :direction :output + :if-exists :supersede + :if-does-not-exist :create) + (print '(setq *saved-load-pathname* *load-pathname*) s)) + (let (tmp-fasl) + (unwind-protect + (progn + (load *tmp-filename*) + (assert (equal (merge-pathnames *tmp-filename*) *saved-load-pathname*))) + (delete-file *tmp-filename*)))) +