X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.test.sh;h=f2921ef21be2a00031e44155de4e35faf7874366;hb=a7699535aaba71765335f3be0a2103b2f07941af;hp=149ab198421b5a48d4eb69ab01257a1fc86daef2;hpb=245101f127d61e28b9c864c720eb17973469a904;p=sbcl.git diff --git a/tests/compiler.test.sh b/tests/compiler.test.sh index 149ab19..f2921ef 100644 --- a/tests/compiler.test.sh +++ b/tests/compiler.test.sh @@ -6,100 +6,16 @@ # 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. -# 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 < $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 < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename <