X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcore.test.sh;h=1c5a0cf8a42961ec2e5bc3c9b38c50416b66092a;hb=85c34f4d1257df20fe1ab6f0d4d476bb3ec0bc63;hp=c60f09983cac3272f21eca97171302c240c4d460;hpb=1026ecf53d97cd568ab94f9a459e73bfa19d425b;p=sbcl.git diff --git a/tests/core.test.sh b/tests/core.test.sh index c60f099..1c5a0cf 100644 --- a/tests/core.test.sh +++ b/tests/core.test.sh @@ -8,13 +8,14 @@ # 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. tmpcore="core-test-sh-$$.core" -rm -f $tmpcore +tmpoutput="core-test-sh-$$.output.txt" +rm -f "$tmpcore" "$tmpoutput" # In sbcl-0.7.7 SAVE-LISP-AND-DIE didn't work at all because of # flakiness caused by consing/GC/purify twice-and-at-least-twice @@ -39,6 +40,51 @@ else exit 1 fi -rm -f $tmpcore +# In sbcl-0.9.8 saving cores with callbacks didn't work on gencgc platforms +$SBCL <"$tmpoutput" --eval '(quit :unix-status 71)' +if [ $? != 71 ]; then + echo "failure in banner suppression: $?" + exit 1 +elif [ -s "$tmpoutput" ]; then + echo "failure in banner suppression: nonempty output:" + echo --- + cat "$tmpoutput" + echo --- + exit 1 +elif [ -f "$tmpoutput" ]; then + echo "/Executable suppressed banner, good." +else + echo "failure in banner suppression: $tmpoutput was not created or something funny happened." + exit 1 +fi + +rm -f "$tmpcore" +rm -f "$tmpoutput" echo "/returning success from core.test.sh" exit 104