diff options
author | Alon Zakai <azakai@google.com> | 2021-01-15 16:03:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 08:03:32 -0800 |
commit | d808e900b8b8a0bc99d77fd38e94426df73c3afa (patch) | |
tree | 384acbd0efb0bae7fc1585be7e2abe1a6c09f41c /scripts/test/generate_lld_tests.py | |
parent | beccdf70258cd99ea25f10af13103e14dc243ffa (diff) | |
download | binaryen-d808e900b8b8a0bc99d77fd38e94426df73c3afa.tar.gz binaryen-d808e900b8b8a0bc99d77fd38e94426df73c3afa.tar.bz2 binaryen-d808e900b8b8a0bc99d77fd38e94426df73c3afa.zip |
Reducer: Improve warning on scripts that ignore the input (#3490)
The risk the warning checks for is giving the reducer a script that ignores
the input. To do so it runs the command in the input, and runs it on a
garbage file, and checks if the result is different. However, if the script
does immediately fail on the input - because the input is a crash testcase
or such - then this does not work, as the result on a garbage input may be
the same error.
To avoid that, also check what happens on a trivial valid wasm as input.
Only show the warning if the result on the original input, on a garbage
wasm, and on a trivial wasm, are all the same - in that case, likely the
script really is ignoring the input.
Diffstat (limited to 'scripts/test/generate_lld_tests.py')
0 files changed, 0 insertions, 0 deletions