0.pre7.63:
[sbcl.git] / tests / foreign.test.sh
index 0afbf39..6b5a7cd 100644 (file)
@@ -13,7 +13,7 @@
 # absolutely no warranty. See the COPYING and CREDITS files for
 # more information.
 
-testfilestem=$TMPDIR/sbcl-foreign-test-$$
+testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$
 
 echo 'int summish(int x, int y) { return 1 + x + y; }' > $testfilestem.c
 make $testfilestem.o
@@ -38,5 +38,7 @@ fi
 # rolling over in his grave.:-) It would be good to make a test case
 # for it..
 
+rm $testfilestem.*
+
 # success convention for script
 exit 104