projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.31.23: OAOOize external-format support
[sbcl.git]
/
tests
/
run-program.impure.lisp
diff --git
a/tests/run-program.impure.lisp
b/tests/run-program.impure.lisp
index
9ef07e5
..
01100ba
100644
(file)
--- a/
tests/run-program.impure.lisp
+++ b/
tests/run-program.impure.lisp
@@
-135,3
+135,14
@@
(sb-ext:run-program "/bin/echo" '
("It would be nice if this didn't crash.")
:wait nil :output nil)))))
(sb-ext:run-program "/bin/echo" '
("It would be nice if this didn't crash.")
:wait nil :output nil)))))
+
+(with-test (:name (:run-program :pty-stream))
+ (assert (equal "OK"
+ (subseq
+ (with-output-to-string (s)
+ (assert (= 42 (process-exit-code
+ (run-program "/bin/sh" '("-c" "echo OK; exit 42") :wait t
+ :pty s))))
+ s)
+ 0
+ 2))))