1.0.9.53: trivial typo fixes
[sbcl/lichteblau.git] / tests / threads.test.sh
blob9ca386ea3f30dfb334b221924a0f26dd40046fc0
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 flag="condition-wait-sigcont.tmp"
15 touch $flag
17 $SBCL --load condition-wait-sigcont.lisp &
18 sb_pid=$!
20 while [ -f $flag ]; do sleep 1; done
21 sleep 1
22 kill -STOP $sb_pid
23 kill -CONT $sb_pid
25 sleep 2
26 kill -KILL $sb_pid
28 if [ -f $flag ]
29 then
30 rm $flag
31 exit 1 # error
32 else
33 exit 104 # success