projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.13.56:
[sbcl.git]
/
tests
/
run-program.test.sh
diff --git
a/tests/run-program.test.sh
b/tests/run-program.test.sh
index
9f7b9ab
..
84a93c5
100644
(file)
--- a/
tests/run-program.test.sh
+++ b/
tests/run-program.test.sh
@@
-15,9
+15,17
@@
# Make sure that there's at least something in the environment (for
# one of the tests below).
# Make sure that there's at least something in the environment (for
# one of the tests below).
-export SOMETHING_IN_THE_ENVIRONMENT='yes there is'
+SOMETHING_IN_THE_ENVIRONMENT='yes there is'
+export SOMETHING_IN_THE_ENVIRONMENT
+PATH=/some/path/that/does/not/exist:${PATH}
+export PATH
${SBCL:-sbcl} <<EOF
${SBCL:-sbcl} <<EOF
+ ;; test that $PATH is searched
+ (assert (zerop (sb-ext:process-exit-code
+ (sb-ext:run-program "true" () :search t :wait t))))
+ (assert (not (zerop (sb-ext:process-exit-code
+ (sb-ext:run-program "false" () :search t :wait t)))))
(let ((string (with-output-to-string (stream)
(sb-ext:run-program "/bin/echo"
'("foo" "bar")
(let ((string (with-output-to-string (stream)
(sb-ext:run-program "/bin/echo"
'("foo" "bar")