X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-program.test.sh;h=beb6e42905259c455b7c41906704a74c0a105a44;hb=f2b65035e35f3f7ae5f645cea6338538235ca899;hp=84a93c55869204c4cce73af5725972d5f846015c;hpb=778877cd8b0aad3cc3d2555e83d55e9f229678c7;p=sbcl.git diff --git a/tests/run-program.test.sh b/tests/run-program.test.sh index 84a93c5..beb6e42 100644 --- a/tests/run-program.test.sh +++ b/tests/run-program.test.sh @@ -8,7 +8,7 @@ # While most of SBCL is derived from the CMU CL system, the test # files (like this one) were written from scratch after the fork # from CMU CL. -# +# # This software is in the public domain and is provided with # absolutely no warranty. See the COPYING and CREDITS files for # more information. @@ -20,12 +20,12 @@ export SOMETHING_IN_THE_ENVIRONMENT PATH=/some/path/that/does/not/exist:${PATH} export PATH -${SBCL:-sbcl} <&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