mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-05 01:55:21 +03:00
Meta: Don't make wasm tests pass when they cannot read a module
Instead, just let them be treated as failing their respective test.
This commit is contained in:
parent
977addf76d
commit
d7ba15371b
Notes:
sideshowbarker
2024-07-18 16:54:46 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/d7ba15371b8 Pull-request: https://github.com/SerenityOS/serenity/pull/7756
@ -234,10 +234,7 @@ def gentest(entry, main_name):
|
||||
|
||||
def gen_parse_module(name):
|
||||
return (
|
||||
f'let content;\n '
|
||||
f'try {{\n '
|
||||
f'content = readBinaryWasmFile("Fixtures/SpecTests/{name}.wasm");\n '
|
||||
f'}} catch {{ read_okay = false; }}\n '
|
||||
f'let content = readBinaryWasmFile("Fixtures/SpecTests/{name}.wasm");\n '
|
||||
f'const module = parseWebAssemblyModule(content)\n '
|
||||
)
|
||||
|
||||
@ -260,12 +257,10 @@ def main():
|
||||
continue
|
||||
|
||||
sep = ""
|
||||
print(f'''{{
|
||||
let readOkay = true;
|
||||
print(f'''describe({json.dumps(testname)}, () => {{
|
||||
{gen_parse_module(testname)}
|
||||
if (readOkay) {{
|
||||
{sep.join(gentest(x, testname) for x in description["tests"])}
|
||||
}}}}
|
||||
}});
|
||||
''')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user