gentoo-ebuilds/dev-tcltk/thread/files/thread-2.8.5-musl.patch
Alfredo Tupone 336dabd277
dev-tcltk/thread: note on patch file
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2023-03-17 07:07:33 +01:00

20 lines
621 B
Diff

joining a thread not joinable is no more returning EINVAL
Its behaviour is undefined
--- a/tests/thread.test 2023-03-16 21:31:05.333423098 +0100
+++ b/tests/thread.test 2023-03-16 21:31:25.837324400 +0100
@@ -100,15 +100,6 @@
set c
} {0}
-test thread-4.5 {thread::create - join detached thread} {
- ThreadReap
- set tid [thread::create]
- thread::send -async $tid {after 1000 ; thread::release}
- catch {set res [thread::join $tid]} msg
- ThreadReap
- lrange $msg 0 2
-} {cannot join thread}
-
test thread-5.0 {thread::release} {
ThreadReap
set tid [thread::create {thread::release}]