projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.6.11.36:
[sbcl.git]
/
tests
/
foreign.test.sh
diff --git
a/tests/foreign.test.sh
b/tests/foreign.test.sh
index
69702f6
..
cdab547
100644
(file)
--- a/
tests/foreign.test.sh
+++ b/
tests/foreign.test.sh
@@
-19,7
+19,7
@@
echo 'int summish(int x, int y) { return 1 + x + y; }' > $testfilestem.c
make $testfilestem.o
ld -shared -o $testfilestem.so $testfilestem.o
make $testfilestem.o
ld -shared -o $testfilestem.so $testfilestem.o
-sbcl --noinform --noprint --sysinit /dev/null --userinit /dev/null <<EOF
+${SBCL:-sbcl} <<EOF
(load-foreign '("$testfilestem.so"))
(def-alien-routine summish int (x int) (y int))
(assert (= (summish 10 20) 31))
(load-foreign '("$testfilestem.so"))
(def-alien-routine summish int (x int) (y int))
(assert (= (summish 10 20) 31))