From 82d55ae721daf1e42b271bdd274fd5a039525bba Mon Sep 17 00:00:00 2001 From: YiYing He Date: Wed, 27 Dec 2023 05:54:16 +0800 Subject: [PATCH] [test] Unify the error message in `type-subtyping.wast`. Signed-off-by: YiYing He --- test/core/gc/type-subtyping.wast | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/core/gc/type-subtyping.wast b/test/core/gc/type-subtyping.wast index a9022fc33..9f9d4f002 100644 --- a/test/core/gc/type-subtyping.wast +++ b/test/core/gc/type-subtyping.wast @@ -280,12 +280,12 @@ ) ) (assert_return (invoke "run")) -(assert_trap (invoke "fail1") "indirect call") -(assert_trap (invoke "fail2") "indirect call") -(assert_trap (invoke "fail3") "indirect call") -(assert_trap (invoke "fail4") "cast") -(assert_trap (invoke "fail5") "cast") -(assert_trap (invoke "fail6") "cast") +(assert_trap (invoke "fail1") "indirect call type mismatch") +(assert_trap (invoke "fail2") "indirect call type mismatch") +(assert_trap (invoke "fail3") "indirect call type mismatch") +(assert_trap (invoke "fail4") "cast failure") +(assert_trap (invoke "fail5") "cast failure") +(assert_trap (invoke "fail6") "cast failure") (module (type $t1 (sub (func))) @@ -311,10 +311,10 @@ (drop) ) ) -(assert_trap (invoke "fail1") "indirect call") -(assert_trap (invoke "fail2") "indirect call") -(assert_trap (invoke "fail3") "cast") -(assert_trap (invoke "fail4") "cast") +(assert_trap (invoke "fail1") "indirect call type mismatch") +(assert_trap (invoke "fail2") "indirect call type mismatch") +(assert_trap (invoke "fail3") "cast failure") +(assert_trap (invoke "fail4") "cast failure") (module @@ -580,7 +580,7 @@ (rec (type $g1 (sub $f1 (func))) (type (struct))) (func (import "M5" "g") (type $g1)) ) - "incompatible import" + "incompatible import type" ) (module @@ -672,7 +672,7 @@ (rec (type $f11 (sub (func))) (type $f12 (sub $f11 (func)))) (func (import "M10" "f") (type $f11)) ) - "incompatible import" + "incompatible import type" ) (module @@ -688,7 +688,7 @@ (rec (type $f11 (sub (func))) (type $f12 (sub $f01 (func)))) (func (import "M11" "f") (type $f11)) ) - "incompatible import" + "incompatible import type" )