suppress false positives in ufuzz

This commit is contained in:
alexlamsl 2021-12-12 01:55:32 +08:00
parent 57a9519c3d
commit 3631b4a573

View File

@ -2470,7 +2470,9 @@ for (var round = 1; round <= num_iterations; round++) {
println(result); println(result);
println(); println();
// ignore v8 parser bug // ignore v8 parser bug
return bug_async_arrow_rest(result); return bug_async_arrow_rest(result)
// ignore runtime platform bugs
|| result.message == "Script execution aborted.";
})) continue; })) continue;
minify_options.forEach(function(options) { minify_options.forEach(function(options) {
var o = JSON.parse(options); var o = JSON.parse(options);
@ -2485,6 +2487,8 @@ for (var round = 1; round <= num_iterations; round++) {
ok = sandbox.same_stdout(original_result, uglify_result); ok = sandbox.same_stdout(original_result, uglify_result);
// ignore v8 parser bug // ignore v8 parser bug
if (!ok && bug_async_arrow_rest(uglify_result)) ok = true; if (!ok && bug_async_arrow_rest(uglify_result)) ok = true;
// ignore runtime platform bugs
if (!ok && uglify_result.message == "Script execution aborted.") ok = true;
// handle difference caused by time-outs // handle difference caused by time-outs
if (!ok && errored && is_error_timeout(original_result)) { if (!ok && errored && is_error_timeout(original_result)) {
if (is_error_timeout(uglify_result)) { if (is_error_timeout(uglify_result)) {