X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.test.sh;h=6e20f9534cc8b670fe0f25e935e9dc7930ced5dc;hb=428b60fff4247e34ff601810f33976908f22bbc0;hp=87ca1c119bc7626863a187497b63c8f0f2d11996;hpb=e511ed14d4a20cb9de2523f052b0f23a1dde1115;p=sbcl.git diff --git a/tests/compiler.test.sh b/tests/compiler.test.sh index 87ca1c1..6e20f95 100644 --- a/tests/compiler.test.sh +++ b/tests/compiler.test.sh @@ -11,91 +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 <