summaryrefslogtreecommitdiff
path: root/test/spec/exception-handling/legacy/throw.txt
diff options
context:
space:
mode:
authorSoni L. <EnderMoneyMod@gmail.com>2024-10-31 00:24:16 -0300
committerGitHub <noreply@github.com>2024-10-31 03:24:16 +0000
commitda297e0ebfcab3d8626ed18a87d51a84259e0e22 (patch)
treeb2b07afd804f0fff15d6c0beec3be01e70d509e7 /test/spec/exception-handling/legacy/throw.txt
parent6a5cbb94fad9b375469d6433429521988b1de20b (diff)
downloadwabt-da297e0ebfcab3d8626ed18a87d51a84259e0e22.tar.gz
wabt-da297e0ebfcab3d8626ed18a87d51a84259e0e22.tar.bz2
wabt-da297e0ebfcab3d8626ed18a87d51a84259e0e22.zip
test: Move legacy exception handling tests (NFC) (#2498)
Diffstat (limited to 'test/spec/exception-handling/legacy/throw.txt')
-rw-r--r--test/spec/exception-handling/legacy/throw.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/spec/exception-handling/legacy/throw.txt b/test/spec/exception-handling/legacy/throw.txt
new file mode 100644
index 00000000..e7d56b2b
--- /dev/null
+++ b/test/spec/exception-handling/legacy/throw.txt
@@ -0,0 +1,20 @@
+;;; TOOL: run-interp-spec
+;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/legacy/throw.wast
+;;; ARGS*: --enable-exceptions
+(;; STDOUT ;;;
+out/test/spec/exception-handling/legacy/throw.wast:38: assert_exception passed
+out/test/spec/exception-handling/legacy/throw.wast:39: assert_exception passed
+out/test/spec/exception-handling/legacy/throw.wast:41: assert_exception passed
+out/test/spec/exception-handling/legacy/throw.wast:42: assert_exception passed
+out/test/spec/exception-handling/legacy/throw.wast:43: assert_exception passed
+out/test/spec/exception-handling/legacy/throw.wast:47: assert_invalid passed:
+ out/test/spec/exception-handling/legacy/throw/throw.1.wasm:0000019: error: tag variable out of range: 0 (max 0)
+ 0000019: error: OnThrowExpr callback failed
+out/test/spec/exception-handling/legacy/throw.wast:48: assert_invalid passed:
+ out/test/spec/exception-handling/legacy/throw/throw.2.wasm:0000022: error: type mismatch in throw, expected [i32] but got []
+ 0000022: error: OnThrowExpr callback failed
+out/test/spec/exception-handling/legacy/throw.wast:50: assert_invalid passed:
+ out/test/spec/exception-handling/legacy/throw/throw.3.wasm:0000024: error: type mismatch in throw, expected [i32] but got [i64]
+ 0000024: error: OnThrowExpr callback failed
+11/11 tests passed.
+;;; STDOUT ;;)