wasm-micro-runtime/tests/wamr-test-suites/spec-test-script/thread_proposal_ignore_cases.patch
2021-09-09 12:49:46 +08:00

199 lines
4.9 KiB
Diff

diff --git a/test/core/binary.wast b/test/core/binary.wast
index b9fa438c..a5711dd3 100644
--- a/test/core/binary.wast
+++ b/test/core/binary.wast
@@ -45,7 +45,7 @@
(assert_malformed (module binary "\00asm\00\00\00\01") "unknown binary version")
;; Invalid section id.
-(assert_malformed (module binary "\00asm" "\01\00\00\00" "\0c\00") "malformed section id")
+;; (assert_malformed (module binary "\00asm" "\01\00\00\00" "\0c\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\7f\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\80\00\01\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\81\00\01\00") "malformed section id")
@@ -68,7 +68,7 @@
"\01" ;; call_indirect reserved byte is not equal to zero!
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; call_indirect reserved byte should not be a "long" LEB128 zero.
@@ -87,7 +87,7 @@
"\80\00" ;; call_indirect reserved byte
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; Same as above for 3, 4, and 5-byte zero encodings.
@@ -106,7 +106,7 @@
"\80\80\00" ;; call_indirect reserved byte
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
(assert_malformed
@@ -124,7 +124,7 @@
"\80\80\80\00" ;; call_indirect reserved byte
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
(assert_malformed
@@ -142,7 +142,7 @@
"\80\80\80\80\00" ;; call_indirect reserved byte
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; memory.grow reserved byte equal to zero.
@@ -162,7 +162,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; memory.grow reserved byte should not be a "long" LEB128 zero.
@@ -182,7 +182,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; Same as above for 3, 4, and 5-byte zero encodings.
@@ -202,7 +202,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
(assert_malformed
@@ -221,7 +221,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
(assert_malformed
@@ -240,7 +240,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; memory.size reserved byte equal to zero.
@@ -259,7 +259,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; memory.size reserved byte should not be a "long" LEB128 zero.
@@ -278,7 +278,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; Same as above for 3, 4, and 5-byte zero encodings.
@@ -297,7 +297,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
(assert_malformed
@@ -315,7 +315,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
(assert_malformed
@@ -333,7 +333,7 @@
"\1a" ;; drop
"\0b" ;; end
)
- "zero flag expected"
+ "zero byte expected"
)
;; No more than 2^32 locals.
@@ -745,6 +745,7 @@
)
;; 2 elem segment declared, 1 given
+(;
(assert_malformed
(module binary
"\00asm" "\01\00\00\00"
@@ -761,6 +762,7 @@
)
"unexpected end"
)
+;)
;; 1 elem segment declared, 2 given
(assert_malformed
diff --git a/test/core/elem.wast b/test/core/elem.wast
index 1ea2b061..f5440e07 100644
--- a/test/core/elem.wast
+++ b/test/core/elem.wast
@@ -354,6 +354,7 @@
(assert_return (invoke $module1 "call-8") (i32.const 65))
(assert_return (invoke $module1 "call-9") (i32.const 66))
+(;
(module $module2
(type $out-i32 (func (result i32)))
(import "module1" "shared-table" (table 10 funcref))
@@ -379,3 +380,4 @@
(assert_return (invoke $module1 "call-7") (i32.const 67))
(assert_return (invoke $module1 "call-8") (i32.const 69))
(assert_return (invoke $module1 "call-9") (i32.const 70))
+;)
diff --git a/test/core/thread.wast b/test/core/thread.wast
index c3456a61..83fc2815 100644
--- a/test/core/thread.wast
+++ b/test/core/thread.wast
@@ -2,6 +2,7 @@
(memory (export "shared") 1 1 shared)
)
+(;
(thread $T1 (shared (module $Mem))
(register "mem" $Mem)
(module
@@ -26,3 +27,4 @@
(wait $T1)
(wait $T2)
+;)