X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-program.impure.lisp;fp=tests%2Frun-program.impure.lisp;h=b6b38cf464fa3f5f52dafd5f0af0c9d4082872af;hb=0e1933f873c9fb073e3fc07e73c5401277bd0681;hp=f02cfa08d994bd23469754399e34a49ab5a2741c;hpb=01b41fdd69d197da85f86a2e4f8971f3ef9dda82;p=sbcl.git diff --git a/tests/run-program.impure.lisp b/tests/run-program.impure.lisp index f02cfa0..b6b38cf 100644 --- a/tests/run-program.impure.lisp +++ b/tests/run-program.impure.lisp @@ -91,9 +91,10 @@ (when command (write-line command *ed-in*) (force-output *ed-in*)) - (let ((got (read-linish *ed-out*))) - (unless (equal response got) - (error "wanted ~S from ed, got ~S" response got))) + (when response + (let ((got (read-linish *ed-out*))) + (unless (equal response got) + (error "wanted '~A' from ed, got '~A'" response got)))) *ed*) (unwind-protect @@ -101,7 +102,7 @@ (assert-ed nil "4") (assert-ed ".s/bar/baz/g" "") (assert-ed "w" "4") - (assert-ed "q" "") + (assert-ed "q" nil) (process-wait *ed*) (with-open-file (f *tmpfile*) (assert (equal "baz" (read-line f)))))