X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=89f98d701b1070f841685b11170c80c6a835d97f;hb=76874d05d623e0001cfcf23d2c74f78295ba6cee;hp=ae735b22a2e42c5c415c8dcfa409f925ab743be3;hpb=53e7a02c819090af8e6db7e47d29cdbb5296814f;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index ae735b2..89f98d7 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -13,17 +13,32 @@ # absolutely no warranty. See the COPYING and CREDITS files for # more information. -sbcl="$1" +echo //entering foreign.test.sh -testfilestem=$TMPDIR/sbcl-foreign-test-$$ +testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$ +# Make a little shared object file to test with. echo 'int summish(int x, int y) { return 1 + x + y; }' > $testfilestem.c -make $testfilestem.o +cc -c $testfilestem.c -o $testfilestem.o ld -shared -o $testfilestem.so $testfilestem.o -$sbcl <