projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.15.20: refactor "system locks" framework, one TIMER buglet
[sbcl.git]
/
tests
/
init.test.sh
diff --git
a/tests/init.test.sh
b/tests/init.test.sh
index
a545d55
..
fed1fb8
100644
(file)
--- a/
tests/init.test.sh
+++ b/
tests/init.test.sh
@@
-13,10
+13,13
@@
# absolutely no warranty. See the COPYING and CREDITS files for
# more information.
# absolutely no warranty. See the COPYING and CREDITS files for
# more information.
-tmpcore="init-test-sh-$$.core"
-rm -f $tmpcore
+. ./subr.sh
-$SBCL <<EOF
+use_test_subdirectory
+
+tmpcore="init-test.core"
+
+run_sbcl <<EOF
(defun custom-userinit-pathname ()
"$SBCL_PWD/custom-userinit.lisp")
(defun custom-sysinit-pathname ()
(defun custom-userinit-pathname ()
"$SBCL_PWD/custom-userinit.lisp")
(defun custom-sysinit-pathname ()
@@
-25,16
+28,13
@@
$SBCL <<EOF
sb-impl::*sysinit-pathname-function* 'custom-sysinit-pathname)
(save-lisp-and-die "$tmpcore")
EOF
sb-impl::*sysinit-pathname-function* 'custom-sysinit-pathname)
(save-lisp-and-die "$tmpcore")
EOF
-$SBCL_ALLOWING_CORE --core "$tmpcore" --disable-debugger <<EOF
- (userinit-quit (sysinit-21))
-EOF
-if [ $? = 21 ]; then
- echo "/Default userinit and sysinit loading worked, good"
-else
- echo "failure loading user/sysinit files: $?"
+if [ $? != 0 ]; then
+ echo "failure saving core"
exit 1
fi
exit 1
fi
+run_sbcl_with_core "$tmpcore" --disable-debugger <<EOF
+ (userinit-quit (sysinit-21))
+EOF
+check_status_maybe_lose "userinit and sysinit loading" $? 21 "(loading worked)"
-rm -f $tmpcore
-echo "/returning success from init.test.sh"
-exit 104
+exit $EXIT_TEST_WIN