X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fscript.test.sh;h=87a2e08336aa5d40093dbf25edeabf3182e7e63b;hb=dd5c055b2ddd60e76fa9c17c2d6d97b3b5032a6e;hp=db270dfed42183b34cf4c523267121393ad89868;hpb=9cb944f7616476bb1edf4401fc7ae14f1751617a;p=sbcl.git diff --git a/tests/script.test.sh b/tests/script.test.sh index db270df..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)"