From dd5c055b2ddd60e76fa9c17c2d6d97b3b5032a6e Mon Sep 17 00:00:00 2001 From: Nikodemus Siivola Date: Mon, 2 Jan 2012 11:56:03 +0200 Subject: [PATCH] twiddle script.test.sh Can't open /dev/stdout on all platforms -- but happily for the behaviour we want to test we don't have to. Also add a compile of variations on the theme. --- tests/script.test.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) 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)" -- 1.7.10.4