X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdump.impure-cload.lisp;h=5a468f2666b123c20109790ddf4f81a494a43938;hb=4081f91910d6dc5dc79e2c43b8a746acaa78ecd9;hp=8cb8b890c24b014be6650ef1d06b4d26fdf3a531;hpb=75f29fee61a19b3607bd8fafa8a31184c998c5b0;p=sbcl.git diff --git a/tests/dump.impure-cload.lisp b/tests/dump.impure-cload.lisp index 8cb8b89..5a468f2 100644 --- a/tests/dump.impure-cload.lisp +++ b/tests/dump.impure-cload.lisp @@ -28,7 +28,7 @@ (declare (type list keys)) (loop for c in '#1=("Red" "Blue" . #1#) - for key in keys )) + for key in keys)) ;;; sbcl-0.6.11.25 or so had DEF!STRUCT/MAKE-LOAD-FORM/HOST screwed up ;;; so that the compiler couldn't dump pathnames. @@ -49,4 +49,14 @@ (assert (equalp (foo-x *foo*) '("X"))) (assert (eql (foo-y *foo*) *foo*)) +;;; Logical pathnames should be dumpable, too, but what does it mean? +;;; As of sbcl-0.7.7.16, we've taken dumping the host part to mean +;;; dumping a reference to the name of the host (much as dumping a +;;; symbol involves dumping a reference to the name of its package). +(eval-when (:compile-toplevel :load-toplevel :execute) + (setf (logical-pathname-translations "MY-LOGICAL-HOST") + (list '("**;*.*.*" "/tmp/*.*")))) + +(defparameter *path* #p"MY-LOGICAL-HOST:FOO;BAR.LISP") + (sb-ext:quit :unix-status 104) ; success