From ff02ea0bbe7e3288a2463bb449eb74a2753dda10 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 24 Apr 2024 11:06:17 -0700 Subject: [wasm-shell] Error on unknown commands (#6528) We previously ignored unknown wast commands, which could lead to the mistaken impression that we were passing test cases that we were in fact not running at all. Clarify matters by having wasm-shell error out on unrecognized commands, and comment out all such commands in our versions of the spec test. As we work toward being able to run the upstream spec tests, having these unsupported commands explicitly commented out will make it easier to track progress toward full support. --- test/spec/call_indirect.wast | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/spec/call_indirect.wast') diff --git a/test/spec/call_indirect.wast b/test/spec/call_indirect.wast index 87d1df75a..791a756ca 100644 --- a/test/spec/call_indirect.wast +++ b/test/spec/call_indirect.wast @@ -553,8 +553,8 @@ (assert_return (invoke "odd" (i32.const 200)) (i32.const 99)) (assert_return (invoke "odd" (i32.const 77)) (i32.const 44)) -(assert_exhaustion (invoke "runaway") "call stack exhausted") -(assert_exhaustion (invoke "mutual-runaway") "call stack exhausted") +;; (assert_exhaustion (invoke "runaway") "call stack exhausted") +;; (assert_exhaustion (invoke "mutual-runaway") "call stack exhausted") (assert_return (invoke "as-select-first") (i32.const 0x132)) (assert_return (invoke "as-select-mid") (i32.const 2)) -- cgit v1.2.3