X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.test.sh;h=6c135a46d6642454ed03df302fe704ca61f8c2f0;hb=d4d6c4b16a3655ce99a87d43f411391363531260;hp=65d034159aa1a3ec5fe05b2d9f9470f5ad0a26c6;hpb=b8fb12e4870780ba1188e63f177d4679a535091d;p=sbcl.git diff --git a/tests/compiler.test.sh b/tests/compiler.test.sh index 65d0341..6c135a4 100644 --- a/tests/compiler.test.sh +++ b/tests/compiler.test.sh @@ -11,104 +11,7 @@ # absolutely no warranty. See the COPYING and CREDITS files for # more information. -# FIXME: the functions below should be in their own file, sourced by -# each of the *.test.sh scripts. - -# Check that compiling and loading the file $1 generates an error -# at load time; also that just loading it directly (into the -# interpreter) generates an error. -expect_load_error () -{ - # Test compiling and loading. - $SBCL < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < y 1) (funcall (if (> y 0) #'foo #'identity) y)))) +EOF +expect_clean_compile $tmpfilename + # This shouldn't fail despite the apparent type mismatch, because of # the NOTINLINE declaration. cat > $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename <