X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-program.impure.lisp;h=76972d3a9573b9c12981f2c3cc19ca1be9137422;hb=d94c1b4a8c534bde146823f56558faf37cd4c4d7;hp=8eae0d03beef6d14a7dc697c05368aeba4ff9b7a;hpb=cf36165d87f08798b2fd94fb27d660ab0e9bd5dd;p=sbcl.git diff --git a/tests/run-program.impure.lisp b/tests/run-program.impure.lisp index 8eae0d0..76972d3 100644 --- a/tests/run-program.impure.lisp +++ b/tests/run-program.impure.lisp @@ -293,3 +293,16 @@ (setq had-error-p t))) (assert (not had-error-p))))) +(with-test (:name (:run-program :no-such-thing)) + (assert (search "Couldn't execute" + (handler-case + (progn (run-program "no-such-program-we-hope" '()) nil) + (error (e) + (princ-to-string e)))))) + +(with-test (:name (:run-program :not-executable)) + (assert (search "Couldn't execute" + (handler-case + (progn (run-program "run-program.impure.lisp" '()) nil) + (error (e) + (princ-to-string e))))))