summaryrefslogtreecommitdiff
path: root/test/unit/test_bysyncify.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-06-16 11:01:29 -0700
committerGitHub <noreply@github.com>2019-06-16 11:01:29 -0700
commit3d3a5a6c28e9266eebcad7315cce96fba6e6dc09 (patch)
treebfc31c2683514f28e1664936e3d86e2e1dbd1da1 /test/unit/test_bysyncify.py
parent1cd34c211dffa66fa2f2e45f3f9291e8ad836e07 (diff)
downloadbinaryen-3d3a5a6c28e9266eebcad7315cce96fba6e6dc09.tar.gz
binaryen-3d3a5a6c28e9266eebcad7315cce96fba6e6dc09.tar.bz2
binaryen-3d3a5a6c28e9266eebcad7315cce96fba6e6dc09.zip
Bysyncify: bysyncify_stop_unwind (#2173)
Add a method to note the stopping of an unwind. This is enough to implement coroutines. Includes an example of coroutine usage in the test suite.
Diffstat (limited to 'test/unit/test_bysyncify.py')
-rw-r--r--test/unit/test_bysyncify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/test_bysyncify.py b/test/unit/test_bysyncify.py
index 5373a4def..29a8ae7cb 100644
--- a/test/unit/test_bysyncify.py
+++ b/test/unit/test_bysyncify.py
@@ -8,7 +8,8 @@ class BysyncifyTest(BinaryenTestCase):
def test_bysyncify(self):
def test(args):
print(args)
- run_process(WASM_OPT + args + [self.input_path('bysyncify.wast'), '--bysyncify', '-o', 'a.wasm'])
+ run_process(WASM_OPT + args + [self.input_path('bysyncify-sleep.wast'), '--bysyncify', '-o', 'a.wasm'])
+ run_process(WASM_OPT + args + [self.input_path('bysyncify-coroutine.wast'), '--bysyncify', '-o', 'b.wasm'])
print(' file size: %d' % os.path.getsize('a.wasm'))
run_process([NODEJS, self.input_path('bysyncify.js')])