Skip to content

Commit 1d725b3

Browse files
authored
Fix broken regex from #21492 (#21498)
1 parent 74a368a commit 1d725b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_other.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13550,7 +13550,7 @@ def test_extended_const(self):
1355013550
self.do_runf('hello_world.c', emcc_args=['-sEXPORTED_FUNCTIONS=_main,___stdout_used', '-mextended-const', '-sMAIN_MODULE=2'])
1355113551
wat = self.get_wasm_text('hello_world.wasm')
1355213552
# Test that extended-const expressions are used in the data segments.
13553-
self.assertContained(r'\(data (\$\S+ )?\(offset (i32.add\s+\(global.get \$\S+\)\s+\(i32.const \d+\)', wat, regex=True)
13553+
self.assertContained(r'\(data (\$\S+ )?\(offset \(i32.add\s+\(global.get \$\S+\)\s+\(i32.const \d+\)', wat, regex=True)
1355413554
# Test that extended-const expressions are used in at least one global initializer.
1355513555
self.assertContained(r'\(global \$\S+ i32 \(i32.add\s+\(global.get \$\S+\)\s+\(i32.const \d+\)', wat, regex=True)
1355613556

0 commit comments

Comments
 (0)