1.0.14.28: small FGEN improvements
[sbcl/jsnell.git] / tests / threads.test.sh
blob2341b3d8a9d2c175921230b9ade785e464582d13
1 #!/bin/sh
3 # This software is part of the SBCL system. See the README file for
4 # more information.
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
8 # from CMU CL.
10 # This software is in the public domain and is provided with
11 # absolutely no warranty. See the COPYING and CREDITS files for
12 # more information.
14 . ./subr.sh
15 use_test_subdirectory
17 flag="condition-wait-sigcont.tmp"
18 touch $flag
20 run_sbcl --load "$SBCL_PWD/condition-wait-sigcont.lisp" &
21 sb_pid=$!
23 while [ -f $flag ]; do sleep 1; done
24 sleep 1
25 kill -STOP $sb_pid
26 kill -CONT $sb_pid
28 sleep 2
29 kill -KILL $sb_pid
31 if [ -f $flag ]
32 then
33 rm $flag
34 exit 1 # error
35 else
36 exit 104 # success