Make FIND-PACKAGE-FROM-SUBSTRING stack-allocate the key passed to
[sbcl/tcr.git] / tests / undefined-classoid-bug.test.sh
blob1a030f76cf2a544dd1a1850366c5b100e64308be
1 # This file run a regression test for a bug in loading
2 # forward-referenced layouts.
4 . ./subr.sh
6 use_test_subdirectory
8 FILES='"undefined-classoid-bug-1.lisp" "undefined-classoid-bug-2.lisp"'
9 FASLS='"undefined-classoid-bug-1.fasl" "undefined-classoid-bug-2.fasl"'
11 for f in $FILES; do
12 (cd "$SBCL_PWD"; cp `eval "echo $f"` "$TEST_DIRECTORY");
13 done
15 run_sbcl <<EOF
16 (let ((files (list $FILES)))
17 (mapc #'load files)
18 (mapc #'compile-file files))
19 (quit :unix-status 52)
20 EOF
22 run_sbcl <<EOF
23 (mapc #'load (list $FASLS))
24 (quit :unix-status $EXIT_LISP_WIN)
25 EOF
26 check_status_maybe_lose undefined-classoid-bug $?
28 exit $EXIT_TEST_WIN