X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fscript.test.sh;h=87a2e08336aa5d40093dbf25edeabf3182e7e63b;hb=dd5c055b2ddd60e76fa9c17c2d6d97b3b5032a6e;hp=3f55d1357827ab27481fdf25bd5c900ffc98ae05;hpb=5b137a40b265d0a1da5bee27a83ec1fd9b354a68;p=sbcl.git diff --git a/tests/script.test.sh b/tests/script.test.sh index 3f55d13..87a2e08 100644 --- a/tests/script.test.sh +++ b/tests/script.test.sh @@ -38,15 +38,29 @@ run_sbcl --script $tmpscript check_status_maybe_lose "--script exit status from normal exit" $? 0 "(everything ok)" cat > $tmpscript </dev/null +check_status_maybe_lose "--script exit status from QUIT when standard-output closed" $? 3 "(as given)" +run_sbcl --load $tmpscript >/dev/null +check_status_maybe_lose "--load exit status from QUIT when standard-output closed" $? 3 "(as given)" + +cat > $tmpscript </dev/null +check_status_maybe_lose "--script exit status from QUIT when original standard-output closed" $? 3 "(as given)" +run_sbcl --load $tmpscript >/dev/null +check_status_maybe_lose "--load exit status from QUIT when original standard-output closed" $? 3 "(as given)" + +cat > $tmpscript </dev/null check_status_maybe_lose "--script exit status from QUIT when stdout closed" $? 3 "(as given)" run_sbcl --load $tmpscript >/dev/null check_status_maybe_lose "--load exit status from QUIT when stdout closed" $? 3 "(as given)"