Commit 3217eaae34e34d88cc863bc2560405ff4b3ff284

Thomas de Grivel 2024-12-09T12:03:55

fix thread ikc3 test

diff --git a/test/ikc3/thread.out.expected b/test/ikc3/thread.out.expected
index 054c71e..d418274 100644
--- a/test/ikc3/thread.out.expected
+++ b/test/ikc3/thread.out.expected
@@ -1,16 +1,12 @@
-t = Thread.new(fn () {
-  puts("ok from thread")
-  :ok_from_thread
-}); void
-void
-Thread.delete(t)
+if t = Thread.new(fn () { puts("ok from thread") ; :ok_from_thread }) do
+  Thread.delete(t)
+end
+ok from thread
 :ok_from_thread
 name = "Plop"
 "Plop"
-(t = Thread.new(fn () {
-  puts("Hello #{name} from thread")
-  :ok_from_thread
-})); void
-void
-Thread.delete(t)
+if t = Thread.new(fn () { puts("Hello #{name} from thread") ; :ok_from_thread }) do
+  Thread.delete(t)
+end
+Hello Plop from thread
 :ok_from_thread