X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-program.test.sh;h=beb6e42905259c455b7c41906704a74c0a105a44;hb=f2b65035e35f3f7ae5f645cea6338538235ca899;hp=a1a36e71b91c50c3a5c50160a0d21c8168fa30e7;hpb=cc1f30efe1c7438bfe6a413f16145ba2d63f7fe2;p=sbcl.git diff --git a/tests/run-program.test.sh b/tests/run-program.test.sh index a1a36e7..beb6e42 100644 --- a/tests/run-program.test.sh +++ b/tests/run-program.test.sh @@ -2,30 +2,113 @@ # tests related to SB-EXT:RUN-PROGRAM -sbcl --noinform --noprint --sysinit /dev/null --userinit /dev/null <&2") + :output s :search t :error :output :wait t)))) + (assert (string= str (format nil "Foo~%Bar~%")))) + + ;; end of file in the middle of a UTF-8 character + (typep (nth-value 1 (ignore-errors + (let ((sb-impl::*default-external-format* :utf-8)) + (with-output-to-string (s) + (run-program "printf" '("\\316") + :output s :search t :wait t))))) + 'error) + + ;; success convention for this Lisp program run as part of a larger script + (sb-ext:quit :unix-status 52))) EOF if [ $? != 52 ]; then echo test failed: $? exit 1 fi -# known bugs: -# -# sbcl-0.6.8: -# -# (SB-EXT:RUN-PROGRAM "echo" NIL) -# => error in function SB-IMPL::%ENUMERATE-SEARCH-LIST: -# Undefined search list: path -# -# (SB-EXT:RUN-PROGRAM "/bin/uname" '("-a") :OUTPUT :STREAM) -# doesn't return a STREAM (the way doc string claims) - # success convention exit 104