aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/goroutines.txt
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-05-25 13:24:50 +0200
committerRon Evans <[email protected]>2021-05-26 20:21:08 +0200
commit6e1eb28ed03d610c791b06c5788579661b3a10a9 (patch)
treea67c9772185ad2c96847ed0272886315c2044ab3 /testdata/goroutines.txt
parent45cf2a5a1adee45b950c8b4cd603f627a722a465 (diff)
downloadtinygo-6e1eb28ed03d610c791b06c5788579661b3a10a9.tar.gz
tinygo-6e1eb28ed03d610c791b06c5788579661b3a10a9.zip
main: rename goroutine tests
While LLVM coroutines are one implementation of goroutines, it is not the only one. Therefore, rename the tests to 'goroutines' to better describe what they're for.
Diffstat (limited to 'testdata/goroutines.txt')
-rw-r--r--testdata/goroutines.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/testdata/goroutines.txt b/testdata/goroutines.txt
new file mode 100644
index 000000000..1e29558af
--- /dev/null
+++ b/testdata/goroutines.txt
@@ -0,0 +1,22 @@
+main 1
+sub 1
+main 2
+sub 2
+main 3
+wait:
+ wait start
+ wait end
+end waiting
+value produced after some time: 42
+non-blocking goroutine
+done with non-blocking goroutine
+async interface method call
+slept inside func pointer 8
+slept inside closure, with value: 20 8
+closure go call result: 1
+pre-acquired mutex
+releasing mutex
+acquired mutex from goroutine
+released mutex from goroutine
+re-acquired mutex
+done