X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=ee78f512b5caf3d41fc17a654fdbdf3e6aada295;hb=fcde5281a74cb29e21550f4f979ad6356f149ab9;hp=eaa3b4b8d7d1de0410184b9575e5701b6e55b063;hpb=2481b0d0f223640c43032f75b689608f8fa332db;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index eaa3b4b..ee78f51 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -17,20 +17,12 @@ echo //entering foreign.test.sh testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$ -# FIXME: At least on OpenBSD, the "make $testfilestem.o" puts the -# output file into the current directory, instead of the -# target directory. E.g. "make /tmp/foo.o" causes "./foo.o" to be -# created (!). Since OpenBSD doesn't support LOAD-FOREIGN, this -# doesn't matter much, since it punts with UNSUPPORTED-OPERATOR -# instead of not finding the file. But it'd be nice to straighten -# this out, if only so that sbcl-foreign-test-*.o clutter -# doesn't pile up in this directory. Maybe some time when I have -# several test machines at hand to check the behavior of different -# versions of "make"... +# 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} <