Skip to content
Snippets Groups Projects
Commit d62866b0 authored by Robert P. Goldman's avatar Robert P. Goldman
Browse files

Handle Allegro lisp program specified as absolute pathname.

Previously only accepted relative pathnames, and would generate spurious
test failure when given an absolute one.
parent eea7b43e
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
#+allegro #+allegro
(defparameter *lisp* (defparameter *lisp*
(truename (subpathname #p"sys:" (first (raw-command-line-arguments))))) (if (absolute-pathname-p (first (raw-command-line-arguments)))
(first (raw-command-line-arguments))
(truename (subpathname #p"sys:" (first (raw-command-line-arguments))))))
;; Try to load lisp-invocation from xcvb ;; Try to load lisp-invocation from xcvb
(setf *central-registry* (setf *central-registry*
...@@ -49,8 +51,8 @@ ...@@ -49,8 +51,8 @@
(run-program (run-program
(symbol-call :lisp-invocation :lisp-invocation-arglist (symbol-call :lisp-invocation :lisp-invocation-arglist
#+allegro :lisp-path #+allegro *lisp* #+allegro :lisp-path #+allegro *lisp*
:image-path (native-namestring img) :image-path (native-namestring img)
:eval "(uiop:restore-image :entry-point 'hello:entry-point :lisp-interaction nil)") :eval "(uiop:restore-image :entry-point 'hello:entry-point :lisp-interaction nil)")
:output :lines :error-output t)) :output :lines :error-output t))
'("hello, world")) '("hello, world"))
...@@ -60,9 +62,9 @@ ...@@ -60,9 +62,9 @@
(run-program (run-program
(symbol-call :lisp-invocation :lisp-invocation-arglist (symbol-call :lisp-invocation :lisp-invocation-arglist
#+allegro :lisp-path #+allegro *lisp* #+allegro :lisp-path #+allegro *lisp*
:image-path (native-namestring img) :image-path (native-namestring img)
:eval "(uiop:restore-image :entry-point 'hello:entry-point :lisp-interaction nil)" :eval "(uiop:restore-image :entry-point 'hello:entry-point :lisp-interaction nil)"
:arguments '("a" "b c" "d")) :arguments '("a" "b c" "d"))
:output :lines :error-output t) :output :lines :error-output t)
'("hello, world" '("hello, world"
"You passed 3 arguments:" "You passed 3 arguments:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment