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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 # Bug is preferred to be a crbug.com/XYZ, but can be any short distinguishable | 88 # Bug is preferred to be a crbug.com/XYZ, but can be any short distinguishable |
89 # label. | 89 # label. |
90 # Regular expressions are assumed to be compiled. We use regexp.search. | 90 # Regular expressions are assumed to be compiled. We use regexp.search. |
91 IGNORE_OUTPUT = { | 91 IGNORE_OUTPUT = { |
92 '': { | 92 '': { |
93 'crbug.com/664068': | 93 'crbug.com/664068': |
94 re.compile(r'RangeError', re.S), | 94 re.compile(r'RangeError', re.S), |
95 'crbug.com/667678': | 95 'crbug.com/667678': |
96 re.compile(r'\[native code\]', re.S), | 96 re.compile(r'\[native code\]', re.S), |
97 'crbug.com/681806': | 97 'crbug.com/681806': |
98 re.compile(r'\[object WebAssembly\.Instance\]', re.S), | 98 re.compile(r'WebAssembly\.Instance', re.S), |
99 'crbug.com/681088': | 99 'crbug.com/681088': |
100 re.compile(r'TypeError: Cannot read property \w+ of undefined', re.S), | 100 re.compile(r'TypeError: Cannot read property \w+ of undefined', re.S), |
101 }, | 101 }, |
102 'validate_asm': { | 102 'validate_asm': { |
103 'validate_asm': | 103 'validate_asm': |
104 re.compile(r'TypeError'), | 104 re.compile(r'TypeError'), |
105 }, | 105 }, |
106 } | 106 } |
107 | 107 |
108 # Lines matching any of the following regular expressions will be ignored | 108 # Lines matching any of the following regular expressions will be ignored |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 bug = check(IGNORE_OUTPUT.get(arch, {})) | 332 bug = check(IGNORE_OUTPUT.get(arch, {})) |
333 if bug: | 333 if bug: |
334 return bug | 334 return bug |
335 bug = check(IGNORE_OUTPUT.get(config, {})) | 335 bug = check(IGNORE_OUTPUT.get(config, {})) |
336 if bug: | 336 if bug: |
337 return bug | 337 return bug |
338 bug = check(IGNORE_OUTPUT.get('%s,%s' % (arch, config), {})) | 338 bug = check(IGNORE_OUTPUT.get('%s,%s' % (arch, config), {})) |
339 if bug: | 339 if bug: |
340 return bug | 340 return bug |
341 return None | 341 return None |
OLD | NEW |