(print :stage-1)
- ;; test realoading object file with new definitions
+ ;; test reloading object file with new definitions
(assert (= 13 foo))
(assert (= 42 (bar)))
(rename-file "$testfilestem-b.so" "$testfilestem-b.bak")
(print :stage-2)
;; test late resolution
- (define-alien-variable late-foo int)
- (define-alien-routine late-bar int)
- (multiple-value-bind (val err) (ignore-errors late-foo)
- (assert (not val))
- (assert (typep err 'undefined-alien-error)))
- (multiple-value-bind (val err) (ignore-errors (late-bar))
- (assert (not val))
- (assert (typep err 'undefined-alien-error)))
- (load-shared-object "$testfilestem-c.so")
- (assert (= 43 late-foo))
- (assert (= 14 (late-bar)))
+ #+linkage-table
+ (progn
+ (define-alien-variable late-foo int)
+ (define-alien-routine late-bar int)
+ (multiple-value-bind (val err) (ignore-errors late-foo)
+ (assert (not val))
+ (assert (typep err 'undefined-alien-error)))
+ (multiple-value-bind (val err) (ignore-errors (late-bar))
+ (assert (not val))
+ (assert (typep err 'undefined-alien-error)))
+ (load-shared-object "$testfilestem-c.so")
+ (assert (= 43 late-foo))
+ (assert (= 14 (late-bar))))
(print :stage-3)
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.5.11"
+"0.9.5.12"