X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=ee78f512b5caf3d41fc17a654fdbdf3e6aada295;hb=d76c81b0ca4dcfc99f0cd805f5c20493fa80b2b6;hp=cdab547df2b89994c2a1ca01e0348a3395447d66;hpb=f0338f6fa732b21daa4405e19465bd460e0526d9;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index cdab547..ee78f51 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -13,15 +13,25 @@ # 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-$$ + +# 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 +# Test interaction with the shared object file. ${SBCL:-sbcl} <