OLD | NEW |
1 # Copyright 2016 the V8 project authors. All rights reserved. | 1 # Copyright 2016 the V8 project authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """ | 5 """ |
6 Suppressions for V8 correctness fuzzer failures. | 6 Suppressions for V8 correctness fuzzer failures. |
7 | 7 |
8 We support three types of suppressions: | 8 We support three types of suppressions: |
9 1. Ignore test case by pattern. | 9 1. Ignore test case by pattern. |
10 Map a regular expression to a bug entry. A new failure will be reported | 10 Map a regular expression to a bug entry. A new failure will be reported |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 # label. | 81 # label. |
82 # Regular expressions are assumed to be compiled. We use regexp.search. | 82 # Regular expressions are assumed to be compiled. We use regexp.search. |
83 IGNORE_OUTPUT = { | 83 IGNORE_OUTPUT = { |
84 '': { | 84 '': { |
85 'crbug.com/664068': | 85 'crbug.com/664068': |
86 re.compile(r'RangeError', re.S), | 86 re.compile(r'RangeError', re.S), |
87 'crbug.com/667678': | 87 'crbug.com/667678': |
88 re.compile(r'\[native code\]', re.S), | 88 re.compile(r'\[native code\]', re.S), |
89 'crbug.com/681806': | 89 'crbug.com/681806': |
90 re.compile(r'\[object WebAssembly\.Instance\]', re.S), | 90 re.compile(r'\[object WebAssembly\.Instance\]', re.S), |
| 91 'crbug.com/681088': |
| 92 re.compile(r'TypeError: Cannot read property \w+ of undefined', re.S), |
91 }, | 93 }, |
92 'validate_asm': { | 94 'validate_asm': { |
93 'validate_asm': | 95 'validate_asm': |
94 re.compile(r'TypeError'), | 96 re.compile(r'TypeError'), |
95 }, | 97 }, |
96 } | 98 } |
97 | 99 |
98 # Lines matching any of the following regular expressions will be ignored | 100 # Lines matching any of the following regular expressions will be ignored |
99 # if appearing on both sides. The capturing groups need to match exactly. | 101 # if appearing on both sides. The capturing groups need to match exactly. |
100 # Use uncompiled regular expressions - they'll be compiled later. | 102 # Use uncompiled regular expressions - they'll be compiled later. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 bug = check(IGNORE_OUTPUT.get(arch, {})) | 323 bug = check(IGNORE_OUTPUT.get(arch, {})) |
322 if bug: | 324 if bug: |
323 return bug | 325 return bug |
324 bug = check(IGNORE_OUTPUT.get(config, {})) | 326 bug = check(IGNORE_OUTPUT.get(config, {})) |
325 if bug: | 327 if bug: |
326 return bug | 328 return bug |
327 bug = check(IGNORE_OUTPUT.get('%s,%s' % (arch, config), {})) | 329 bug = check(IGNORE_OUTPUT.get('%s,%s' % (arch, config), {})) |
328 if bug: | 330 if bug: |
329 return bug | 331 return bug |
330 return None | 332 return None |
OLD | NEW |