sbcl.sbcl/tests/save9.test.sh
Douglas Katzman ea0e1f96e1 Use /tmp more in shell tests
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.
2022-10-07 13:54:25 -04:00

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