1.0.46.43: fix sb-introspect on non-threaded builds
[sbcl.git] / tests / threads.test.sh
index 9ca386e..cc2de11 100644 (file)
 # absolutely no warranty. See the COPYING and CREDITS files for
 # more information.
 
+. ./subr.sh
+use_test_subdirectory
+
 flag="condition-wait-sigcont.tmp"
 touch $flag
 
-$SBCL --load condition-wait-sigcont.lisp &
+# $! is not set correctly when calling run_sbcl, do it directly
+"$SBCL_RUNTIME" --core "$SBCL_CORE" $SBCL_ARGS \
+    --load "$SBCL_PWD/condition-wait-sigcont.lisp" &
 sb_pid=$!
 
 while [ -f $flag ]; do sleep 1; done