X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=eaa3b4b8d7d1de0410184b9575e5701b6e55b063;hb=cab2c71bb1bb8a575d9eebdae335e731daa64183;hp=3fa04e8e2dfd1a42d0f0bb60355be33c01d132b1;hpb=63fcb94b875a97e468d9add229e220ecceec2352;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 3fa04e8..eaa3b4b 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -13,17 +13,34 @@ # absolutely no warranty. See the COPYING and CREDITS files for # more information. -testfilestem=$TMPDIR/sbcl-foreign-test-$$ +echo //entering foreign.test.sh +testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$ + +# FIXME: At least on OpenBSD, the "make $testfilestem.o" puts the +# output file into the current directory, instead of the +# target directory. E.g. "make /tmp/foo.o" causes "./foo.o" to be +# created (!). Since OpenBSD doesn't support LOAD-FOREIGN, this +# doesn't matter much, since it punts with UNSUPPORTED-OPERATOR +# instead of not finding the file. But it'd be nice to straighten +# this out, if only so that sbcl-foreign-test-*.o clutter +# doesn't pile up in this directory. Maybe some time when I have +# several test machines at hand to check the behavior of different +# versions of "make"... echo 'int summish(int x, int y) { return 1 + x + y; }' > $testfilestem.c make $testfilestem.o ld -shared -o $testfilestem.so $testfilestem.o ${SBCL:-sbcl} <