X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcore.test.sh;h=1fd0ad4a7532bdb3f91ab1a9749e7188497efedc;hb=bef0d9c1274819ee3fb886401209662bace136ce;hp=84c6a3da0c8cd5843afec453514460420d01e274;hpb=04d819bb1a2e64de4e997203b9516229bb73c686;p=sbcl.git diff --git a/tests/core.test.sh b/tests/core.test.sh index 84c6a3d..1fd0ad4 100644 --- a/tests/core.test.sh +++ b/tests/core.test.sh @@ -14,7 +14,8 @@ # 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 @@ -61,6 +62,30 @@ else exit 1 fi -rm -f $tmpcore +# test suppression of banner in executable cores +$SBCL <"$tmpoutput" \ + --no-userinit --no-sysinit --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