projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.43.29: fix OVERAGER-CHARACTER-BUFFERING test-case
[sbcl.git]
/
tests
/
run-program.impure.lisp
diff --git
a/tests/run-program.impure.lisp
b/tests/run-program.impure.lisp
index
b6b38cf
..
46238b9
100644
(file)
--- a/
tests/run-program.impure.lisp
+++ b/
tests/run-program.impure.lisp
@@
-84,8
+84,10
@@
(defun read-linish (stream)
(with-output-to-string (s)
(loop for c = (read-char stream)
(defun read-linish (stream)
(with-output-to-string (s)
(loop for c = (read-char stream)
- while (and c (not (eq #\newline c)) (not (eq #\return c)))
- do (write-char c s))))
+ while (and c (not (eq #\newline c)))
+ ;; Some eds like to send \r\n
+ do (unless (eq #\return c)
+ (write-char c s)))))
(defun assert-ed (command response)
(when command
(defun assert-ed (command response)
(when command
@@
-100,7
+102,7
@@
(unwind-protect
(with-test (:name :run-program-ed)
(assert-ed nil "4")
(unwind-protect
(with-test (:name :run-program-ed)
(assert-ed nil "4")
- (assert-ed ".s/bar/baz/g" "")
+ (assert-ed ".s/bar/baz/g" nil)
(assert-ed "w" "4")
(assert-ed "q" nil)
(process-wait *ed*)
(assert-ed "w" "4")
(assert-ed "q" nil)
(process-wait *ed*)