X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=ee78f512b5caf3d41fc17a654fdbdf3e6aada295;hb=4ecf0abf29f8a8cb2a59c67e192e1f83efaa31f7;hp=69702f68606250b333c020d789467966fb5d08f4;hpb=e5f24ebc38e38c986df830fd1e4035d16bea4e5c;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 69702f6..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 -sbcl --noinform --noprint --sysinit /dev/null --userinit /dev/null <