summaryrefslogtreecommitdiff
path: root/test/unit/test_bysyncify.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-07-01 19:23:52 -0700
committerGitHub <noreply@github.com>2019-07-01 19:23:52 -0700
commitf154364c01603b0b8cfd0055951e8283f20fabd7 (patch)
tree85e5add66cefc3ce338ef52bb4733b7091cf4dd4 /test/unit/test_bysyncify.py
parentc3e45d4e5272486fae1ffb353c56e4d117fe4a21 (diff)
downloadbinaryen-f154364c01603b0b8cfd0055951e8283f20fabd7.tar.gz
binaryen-f154364c01603b0b8cfd0055951e8283f20fabd7.tar.bz2
binaryen-f154364c01603b0b8cfd0055951e8283f20fabd7.zip
Bysyncify: Assertion improvements (#2193)
Add assertions on stack overflow in all 4 Bysyncify API calls (previously only 2 did it). Also add a check that those assertions are hit.
Diffstat (limited to 'test/unit/test_bysyncify.py')
-rw-r--r--test/unit/test_bysyncify.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/test_bysyncify.py b/test/unit/test_bysyncify.py
index 8d5a780e8..407f3f7f9 100644
--- a/test/unit/test_bysyncify.py
+++ b/test/unit/test_bysyncify.py
@@ -10,6 +10,7 @@ class BysyncifyTest(BinaryenTestCase):
print(args)
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'])
+ run_process(WASM_OPT + args + [self.input_path('bysyncify-stackOverflow.wast'), '--bysyncify', '-o', 'c.wasm'])
print(' file size: %d' % os.path.getsize('a.wasm'))
run_process([NODEJS, self.input_path('bysyncify.js')])