X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=ee78f512b5caf3d41fc17a654fdbdf3e6aada295;hb=fcde5281a74cb29e21550f4f979ad6356f149ab9;hp=ae735b22a2e42c5c415c8dcfa409f925ab743be3;hpb=53e7a02c819090af8e6db7e47d29cdbb5296814f;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index ae735b2..ee78f51 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -13,17 +13,25 @@ # 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 <