summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/passes/translate-to-fuzz_all-features.txt1
-rw-r--r--test/passes/translate-to-fuzz_no-fuzz-nans_all-features.txt1
-rw-r--r--test/unit/input/bysyncify.js8
3 files changed, 6 insertions, 4 deletions
diff --git a/test/passes/translate-to-fuzz_all-features.txt b/test/passes/translate-to-fuzz_all-features.txt
index c3fd77b20..efbe0c232 100644
--- a/test/passes/translate-to-fuzz_all-features.txt
+++ b/test/passes/translate-to-fuzz_all-features.txt
@@ -20,6 +20,7 @@
(global $hangLimit (mut i32) (i32.const 10))
(event $event$0 (attr 0) (param i32 f32 i32 f64 i32))
(export "hashMemory" (func $hashMemory))
+ (export "memory" (memory $0))
(export "func_5" (func $func_5))
(export "hangLimitInitializer" (func $hangLimitInitializer))
(func $hashMemory (; 4 ;) (type $FUNCSIG$i) (result i32)
diff --git a/test/passes/translate-to-fuzz_no-fuzz-nans_all-features.txt b/test/passes/translate-to-fuzz_no-fuzz-nans_all-features.txt
index 57afb02b7..ba8dec2d4 100644
--- a/test/passes/translate-to-fuzz_no-fuzz-nans_all-features.txt
+++ b/test/passes/translate-to-fuzz_no-fuzz-nans_all-features.txt
@@ -19,6 +19,7 @@
(global $hangLimit (mut i32) (i32.const 10))
(event $event$0 (attr 0) (param i32 f32 i32 f64 i32))
(export "hashMemory" (func $hashMemory))
+ (export "memory" (memory $0))
(export "hangLimitInitializer" (func $hangLimitInitializer))
(func $hashMemory (; 4 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
diff --git a/test/unit/input/bysyncify.js b/test/unit/input/bysyncify.js
index 4fd6f4b84..2e1bb4895 100644
--- a/test/unit/input/bysyncify.js
+++ b/test/unit/input/bysyncify.js
@@ -28,14 +28,14 @@ function sleepTests() {
// We are called in order to start a sleep/unwind.
console.log('sleep...');
sleeps++;
+ sleeping = true;
// Unwinding.
- exports.bysyncify_start_unwind(DATA_ADDR);
// Fill in the data structure. The first value has the stack location,
// which for simplicity we can start right after the data structure itself.
view[DATA_ADDR >> 2] = DATA_ADDR + 8;
// The end of the stack will not be reached here anyhow.
view[DATA_ADDR + 4 >> 2] = 1024;
- sleeping = true;
+ exports.bysyncify_start_unwind(DATA_ADDR);
} else {
// We are called as part of a resume/rewind. Stop sleeping.
console.log('resume...');
@@ -77,7 +77,7 @@ function sleepTests() {
if (expectedSleeps > 0) {
assert(!result, 'results during sleep are meaningless, just 0');
- exports.bysyncify_stop_unwind(DATA_ADDR);
+ exports.bysyncify_stop_unwind();
for (var i = 0; i < expectedSleeps - 1; i++) {
console.log('rewind, run until the next sleep');
@@ -85,7 +85,7 @@ function sleepTests() {
result = exports[name](); // no need for params on later times
assert(!result, 'results during sleep are meaningless, just 0');
logMemory();
- exports.bysyncify_stop_unwind(DATA_ADDR);
+ exports.bysyncify_stop_unwind();
}
console.log('rewind and run til the end.');