Skip to content

Commit 1d5db26

Browse files
committed
Load tests.lisp in cross compiled jscl
1 parent 5f7e256 commit 1d5db26

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/toplevel.lisp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ All errors are caught and report to *ERROR-OUTPUT*."
321321
#:jsbool #:clbool
322322
#:in)
323323
(:export
324+
#:*root*
324325
#:object
325326
#:oget #:oset #:oget?
326327
#:typeof #:instanceof #:new

tests.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@
100100

101101
(defun exit-with-test-status ()
102102
"Exit the process with appropriate status code based on test results."
103-
#+jscl-target
103+
#+(or jscl jscl-target)
104104
(progn
105105
(when (in "phantom" *root*)
106106
(#j:phantom:exit *failed-tests*))
107107
(when (in "process" *root*)
108108
(#j:process:exit *failed-tests*)))
109-
#-jscl-target
109+
#-(or jscl jscl-target)
110110
(sb-ext:exit :code (if (zerop *failed-tests*) 0 (min *failed-tests* 255))))
111111

112112
;;;; Test File Discovery
@@ -121,7 +121,7 @@
121121
(let ((entry (clstring (aref entries i))))
122122
(when (and (> (length entry) 5)
123123
(string= (subseq entry (- (length entry) 5)) ".lisp"))
124-
(push (concat "tests/" entry) files)))))
124+
(push (concatenate 'string "tests/" entry) files)))))
125125
(push "tests/loop/validate.lisp" files)
126126
(push "tests/loop/base-tests.lisp" files)
127127
(nreverse files))

0 commit comments

Comments
 (0)