3 # This software is part of the SBCL system. See the README file for
6 # While most of SBCL is derived from the CMU CL system, the test
7 # files (like this one) were written from scratch after the fork
10 # This software is in the public domain and is provided with
11 # absolutely no warranty. See the COPYING and CREDITS files for
18 tmpcore
="init-hook-test.core"
21 (push 'check-no-threads sb-ext:*init-hooks*)
22 (defun check-no-threads ()
23 (sb-sys:os-exit (if (sb-thread::thread-p sb-impl::*finalizer-thread*) 1 0)))
24 (save-lisp-and-die "$tmpcore")
27 echo "failure saving core"
30 run_sbcl_with_core
"$tmpcore" --noinform --disable-debugger
31 check_status_maybe_lose
"init-hooks execution order" $?
0 "(passed)"