X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fthreads.test.sh;h=c7d637435b4034340029ddde287aa960c5349541;hb=260de2062fca170efdac3e42491d7d866c2d2e56;hp=cc2de115b0688c7b36aa20f521523af753fe33bc;hpb=05854d6d554238cf3cfbe2b68e7ae8060f71b536;p=sbcl.git diff --git a/tests/threads.test.sh b/tests/threads.test.sh index cc2de11..c7d6374 100644 --- a/tests/threads.test.sh +++ b/tests/threads.test.sh @@ -14,6 +14,15 @@ . ./subr.sh use_test_subdirectory +run_sbcl --eval '(sb-thread:return-from-thread t :allow-exit t)' +check_status_maybe_lose "return from main thread" $? 0 "ok" + +run_sbcl --eval '(sb-thread:abort-thread :allow-exit t)' +check_status_maybe_lose "abort main thread" $? 1 "ok" + +run_sbcl --eval '#+sb-thread (sb-thread:join-thread (sb-thread:make-thread (lambda () (sb-ext:exit :code 77)))) #-sb-thread (sb-ext:exit :code 77)' +check_status_maybe_lose "exit from normal thread" $? 77 "ok" + flag="condition-wait-sigcont.tmp" touch $flag