X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-program.impure.lisp;h=0200e144549a9beba612daacf1e04dcae85eb83d;hb=ed891a4fd882d1b9fe066ab14bcf2107aea95baa;hp=644bc2b46264036499b46d7eb82e6315f0d82abd;hpb=9ca04e5fe7bc37286c120bc84cfd4abf05e51327;p=sbcl.git diff --git a/tests/run-program.impure.lisp b/tests/run-program.impure.lisp index 644bc2b..0200e14 100644 --- a/tests/run-program.impure.lisp +++ b/tests/run-program.impure.lisp @@ -106,3 +106,17 @@ (with-open-file (f *tmpfile*) (assert (equal "baz" (read-line f))))) (delete-file *tmpfile*)) + +;; Around 1.0.12 there was a regression when :INPUT or :OUTPUT was a +;; pathname designator. Since these use the same code, it should +;; suffice to test just :INPUT. +(let ((file)) + (unwind-protect + (progn (with-open-file (f "run-program-test.tmp" :direction :output) + (setf file (truename f)) + (write-line "Foo" f)) + (assert (run-program "cat" () + :input file :output t + :search t :wait t))) + (when file + (delete-file file))))