diff options
author | Soni L. <EnderMoneyMod@gmail.com> | 2024-10-31 00:24:16 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 03:24:16 +0000 |
commit | da297e0ebfcab3d8626ed18a87d51a84259e0e22 (patch) | |
tree | b2b07afd804f0fff15d6c0beec3be01e70d509e7 /test/spec/exception-handling/legacy/try_delegate.txt | |
parent | 6a5cbb94fad9b375469d6433429521988b1de20b (diff) | |
download | wabt-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/try_delegate.txt')
-rw-r--r-- | test/spec/exception-handling/legacy/try_delegate.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/spec/exception-handling/legacy/try_delegate.txt b/test/spec/exception-handling/legacy/try_delegate.txt new file mode 100644 index 00000000..c871f275 --- /dev/null +++ b/test/spec/exception-handling/legacy/try_delegate.txt @@ -0,0 +1,32 @@ +;;; TOOL: run-interp-spec +;;; STDIN_FILE: third_party/testsuite/proposals/exception-handling/legacy/try_delegate.wast +;;; ARGS*: --enable-exceptions --enable-tail-call +(;; STDOUT ;;; +out/test/spec/exception-handling/legacy/try_delegate.wast:195: assert_exception passed +out/test/spec/exception-handling/legacy/try_delegate.wast:198: assert_exception passed +out/test/spec/exception-handling/legacy/try_delegate.wast:200: assert_exception passed +out/test/spec/exception-handling/legacy/try_delegate.wast:208: assert_exception passed +out/test/spec/exception-handling/legacy/try_delegate.wast:209: assert_exception passed +out/test/spec/exception-handling/legacy/try_delegate.wast:213: assert_exception passed +out/test/spec/exception-handling/legacy/try_delegate.wast:214: assert_exception passed +out/test/spec/exception-handling/legacy/try_delegate.wast:222: assert_malformed passed: + out/test/spec/exception-handling/legacy/try_delegate/try_delegate.1.wat:1:16: error: unexpected token "delegate", expected an instr. + (module (func (delegate 0))) + ^^^^^^^^ +out/test/spec/exception-handling/legacy/try_delegate.wast:227: assert_malformed passed: + out/test/spec/exception-handling/legacy/try_delegate/try_delegate.2.wat:1:46: error: unexpected token delegate, expected ). + (module (tag $e) (func (try (do) (catch $e) (delegate 0)))) + ^^^^^^^^ +out/test/spec/exception-handling/legacy/try_delegate.wast:232: assert_malformed passed: + out/test/spec/exception-handling/legacy/try_delegate/try_delegate.3.wat:1:38: error: unexpected token delegate, expected ). + (module (func (try (do) (catch_all) (delegate 0)))) + ^^^^^^^^ +out/test/spec/exception-handling/legacy/try_delegate.wast:237: assert_malformed passed: + out/test/spec/exception-handling/legacy/try_delegate/try_delegate.4.wat:1:34: error: unexpected token ")", expected a numeric index or a name (e.g. 12 or $foo). + (module (func (try (do) (delegate) (delegate 0)))) + ^ +out/test/spec/exception-handling/legacy/try_delegate.wast:242: assert_invalid passed: + out/test/spec/exception-handling/legacy/try_delegate/try_delegate.5.wasm:000001b: error: invalid depth: 2 (max 1) + 000001b: error: OnDelegateExpr callback failed +26/26 tests passed. +;;; STDOUT ;;) |