X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Frun-tests.sh;h=51cb6411128f7d8f23ca793354ec2c2c5310636b;hb=db55ad022ec7cc7a2f251918579fdeba7f17dbe0;hp=40549f27d00b07c68888f70b2229b12ed233ea23;hpb=f2aa2d01b8d69f1c7bff18f86279d4f1018fe127;p=sbcl.git diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 40549f2..51cb641 100644 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -14,7 +14,13 @@ # more information. # how we invoke SBCL in the tests -export SBCL="${1:-../src/runtime/sbcl --core ../output/sbcl.core --noinform --sysinit /dev/null --userinit /dev/null --noprint --noprogrammer}" +# +# Until sbcl-0.6.12.8, the shell variable SBCL was bound to a relative +# pathname, but now we take care to bind it to an absolute pathname (still +# generated relative to `pwd` in the tests/ directory) so that tests +# can chdir before invoking SBCL and still work. +export SBCL="${1:-`pwd`/../src/runtime/sbcl --core `pwd`/../output/sbcl.core --noinform --sysinit /dev/null --userinit /dev/null --noprint --noprogrammer}" +echo /running tests on SBCL=\'$SBCL\' # "Ten four" is the closest numerical slang I can find to "OK", so # it's the Unix status value that we expect from a successful test. @@ -28,7 +34,7 @@ tenfour () { if [ $? = 104 ]; then echo ok else - echo test failed: $? + echo test failed, expected 104 return code, got $? exit 1 fi }