cli exit tests: valid wasi commands must export a memory
wiggle enforces this but the specially-overridden proc_exit function did not. Now that we proc_exit through wiggle, wiggle will trap if it cannot import the instance's memory
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
(module
|
||||
(import "wasi_unstable" "proc_exit"
|
||||
(func $__wasi_proc_exit (param i32)))
|
||||
(memory (export "memory") 0)
|
||||
(func $_start
|
||||
(call $__wasi_proc_exit (i32.const 125))
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
(module
|
||||
(import "wasi_snapshot_preview1" "proc_exit"
|
||||
(func $__wasi_proc_exit (param i32)))
|
||||
(memory (export "memory") 0)
|
||||
(func $_start
|
||||
(call $__wasi_proc_exit (i32.const 125))
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
(module
|
||||
(import "wasi_unstable" "proc_exit"
|
||||
(func $__wasi_proc_exit (param i32)))
|
||||
(memory (export "memory") 0)
|
||||
(func $_start
|
||||
(call $__wasi_proc_exit (i32.const 126))
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
(module
|
||||
(import "wasi_snapshot_preview1" "proc_exit"
|
||||
(func $__wasi_proc_exit (param i32)))
|
||||
(memory (export "memory") 0)
|
||||
(func $_start
|
||||
(call $__wasi_proc_exit (i32.const 126))
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
(module
|
||||
(import "wasi_unstable" "proc_exit"
|
||||
(func $__wasi_proc_exit (param i32)))
|
||||
(memory (export "memory") 0)
|
||||
(func $_start
|
||||
(call $__wasi_proc_exit (i32.const 2))
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
(module
|
||||
(import "wasi_snapshot_preview1" "proc_exit"
|
||||
(func $__wasi_proc_exit (param i32)))
|
||||
(memory (export "memory") 0)
|
||||
(func $_start
|
||||
(call $__wasi_proc_exit (i32.const 2))
|
||||
)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
(type (func (param i32)))
|
||||
|
||||
(import "wasi_snapshot_preview1" "proc_exit" (func (type 0)))
|
||||
(memory (export "memory") 0)
|
||||
|
||||
(func $exit (param i32)
|
||||
local.get 0
|
||||
|
||||
Reference in New Issue
Block a user