Skip to content

Commit 56eae66

Browse files
authored
Reflect wasm-dis change enabling all features in test (#24876)
WebAssembly/binaryen#7802 enabled all features for wasm-dis, which now prints `(type)`s in `(func)`s. This reflects the change in the tests.
1 parent a6d1c87 commit 56eae66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9491,11 +9491,11 @@ def test_legalize_js_ffi(self, args, js_ffi):
94919491
text = re.sub(r'\$var\$*.', '', text)
94929492
text = re.sub(r'param \$\d+', 'param ', text)
94939493
text = re.sub(r' +', ' ', text)
9494-
e_add_f32 = re.search(r'func \$add_f \(param f32\) \(param f32\) \(result f32\)', text)
9494+
e_add_f32 = re.search(r'func \$add_f (\(type .*\) )?\(param f32\) \(param f32\) \(result f32\)', text)
94959495
assert e_add_f32, 'add_f export missing'
94969496
i_i64_i32 = re.search(r'import "env" "import_ll" .*\(param i32 i32\) \(result i32\)', text)
94979497
i_i64_i64 = re.search(r'import "env" "import_ll" .*\(param i64\) \(result i64\)', text)
9498-
e_i64_i32 = re.search(r'func \$legalstub\$add_ll \(param i32\) \(param i32\) \(param i32\) \(param i32\) \(result i32\)', text)
9498+
e_i64_i32 = re.search(r'func \$legalstub\$add_ll (\(type .*\) )?\(param i32\) \(param i32\) \(param i32\) \(param i32\) \(result i32\)', text)
94999499
if js_ffi:
95009500
assert i_i64_i32, 'i64 not converted to i32 in imports'
95019501
assert not i_i64_i64, 'i64 not converted to i32 in imports'

0 commit comments

Comments
 (0)