X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fdump.impure-cload.lisp;h=28aeb249d6ea05db92b7857c08bd7c5237e89f8b;hb=31f68584d0732dc0d17f379773e5f87f1e5a78ad;hp=d5854cec46868c62b52001db7b2104704e280d81;hpb=988afd9d54ba6c8a915544822658824ab6ae0d6c;p=sbcl.git diff --git a/tests/dump.impure-cload.lisp b/tests/dump.impure-cload.lisp index d5854ce..28aeb24 100644 --- a/tests/dump.impure-cload.lisp +++ b/tests/dump.impure-cload.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. @@ -41,7 +41,7 @@ ;; an extremely meaningless MAKE-LOAD-FORM method whose only point ;; is to exercise the mechanism a little bit (values `(make-foo :x (list ',(foo-x foo))) - `(setf (foo-y ,foo) ',foo)))) + `(setf (foo-y ,foo) ',foo)))) (defparameter *foo* #.(make-foo :x "X" :y "Y")) @@ -55,7 +55,7 @@ ;;; 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/*.*")))) + (list '("**;*.*.*" "/tmp/*.*")))) (defparameter *path* #p"MY-LOGICAL-HOST:FOO;BAR.LISP") @@ -63,8 +63,8 @@ ;;; their complex attributes. (defparameter *string* #.(make-array 3 :initial-element #\a - :fill-pointer 2 - :element-type 'character)) + :fill-pointer 2 + :element-type 'character)) ;;; SBCL 0.7.8 incorrectly read high bits of (COMPLEX DOUBLE-FLOAT) ;;; components as unsigned bytes. @@ -89,6 +89,17 @@ (assert (eql (savable-structure-c *savable-structure*) 1)) (assert (eql (savable-structure-d *savable-structure*) 39)) (assert (eql (savable-structure-e *savable-structure*) 19)) + +;;; null :SLOT-NAMES /= unsupplied +(eval-when (:compile-toplevel :load-toplevel :execute) + (defclass savable-class () + ((a :initform t :initarg :a))) + (defmethod make-load-form ((s savable-class) &optional env) + (make-load-form-saving-slots s :environment env :slot-names '()))) +(defparameter *savable-class* + #.(make-instance 'savable-class :a 3)) +(assert (not (slot-boundp *savable-class* 'a))) + ;;; ensure that we can dump and reload specialized arrays whose element ;;; size is smaller than a byte (caused a few problems circa SBCL @@ -123,5 +134,3 @@ (assert (not (eq *base-string* *character-string*))) (assert (typep *base-string* 'base-string)) (assert (typep *character-string* '(vector character)))) - -(sb-ext:quit :unix-status 104) ; success