mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Anything that invokes 'use_test_subdirectory' should go to /tmp, not just a few scripts that overrode TEST_BASEDIR. After this there are approximately 6 files that will fail if pwd isn't writable. Most involve run-compiler.sh and also filesys tests. Plus there's a hack in run-sbcl.sh without which it would already fail when writing into /tmp.
22 lines
514 B
Bash
Executable file
22 lines
514 B
Bash
Executable file
. ./subr.sh
|
|
|
|
this_file=`pwd`/save9.test.sh
|
|
use_test_subdirectory
|
|
|
|
tmpcore=$TEST_FILESTEM.core
|
|
|
|
run_sbcl <<EOF
|
|
(defvar *s* (open #+unix "$this_file"
|
|
#-unix (format nil "~A/run-tests.lisp"
|
|
(posix-getenv "SBCL_PWD"))))
|
|
(save-lisp-and-die "$tmpcore")
|
|
EOF
|
|
set -e
|
|
answer=`run_sbcl_with_core "$tmpcore" --noinform --disable-ldb --no-userinit --no-sysinit \
|
|
--eval '(print (open-stream-p *s*))' --quit`
|
|
rm "$tmpcore"
|
|
if [ $answer = NIL ]
|
|
then
|
|
exit $EXIT_TEST_WIN
|
|
fi
|