- (unless (fboundp 'load-foreign) ; not necessarily supported on all OSes..
- (sb-ext:quit :unix-status 52)) ; successfully unsupported:-|
- (load-foreign '("$testfilestem.so"))
+ (handler-case
+ (load-foreign '("$testfilestem.so"))
+ (sb-int:unsupported-operator ()
+ ;; At least as of sbcl-0.7.0.5, LOAD-FOREIGN isn't supported
+ ;; on every OS. In that case, there's nothing to test, and we
+ ;; can just fall through to success.
+ (sb-ext:quit :unix-status 52))) ; success convention for Lisp program