Changeset 225496 in webkit
- Timestamp:
- Dec 4, 2017 2:51:13 PM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r225470 r225496 1 2017-12-04 Joseph Pecoraro <pecoraro@apple.com> 2 3 Exclude some more leak callstacks 4 https://bugs.webkit.org/show_bug.cgi?id=180379 5 6 Reviewed by Alexey Proskuryakov. 7 8 * Scripts/webkitpy/port/leakdetector.py: 9 (LeakDetector._types_to_exclude_from_leaks): 10 (LeakDetector._callstacks_to_exclude_from_leaks): 11 (LeakDetector._leaks_args): 12 (LeakDetector._types_to_exlude_from_leaks): Deleted. 13 * Scripts/webkitpy/port/leakdetector_unittest.py: 14 (LeakDetectorTest.test_leaks_args): 15 1 16 2017-12-03 Yusuke Suzuki <utatane.tea@gmail.com> 2 17 -
trunk/Tools/Scripts/webkitpy/port/leakdetector.py
r225321 r225496 49 49 # versions of the system frameworks that are being used by the leaks bots. Even though a leak has been 50 50 # fixed, it will be listed here until the bot has been updated with the newer frameworks. 51 def _types_to_ex lude_from_leaks(self):51 def _types_to_exclude_from_leaks(self): 52 52 # Currently we don't have any type excludes from OS leaks, but we will likely again in the future. 53 53 return [] … … 56 56 callstacks = [ 57 57 'WTF::BitVector::OutOfLineBits::create', # https://bugs.webkit.org/show_bug.cgi?id=121662 58 'WebCore::createPrivateStorageSession', # <rdar://problem/35189565> 59 'CIDeviceManagerStartMonitoring', # <rdar://problem/35711052> 60 'NSSpellChecker init', # <rdar://problem/35434615> 58 61 ] 59 62 return callstacks … … 63 66 for callstack in self._callstacks_to_exclude_from_leaks(): 64 67 leaks_args += ['--exclude-callstack=%s' % callstack] 65 for excluded_type in self._types_to_ex lude_from_leaks():68 for excluded_type in self._types_to_exclude_from_leaks(): 66 69 leaks_args += ['--exclude-type=%s' % excluded_type] 67 70 leaks_args.append(pid) -
trunk/Tools/Scripts/webkitpy/port/leakdetector_unittest.py
r174136 r225496 50 50 detector = self._make_detector() 51 51 detector._callstacks_to_exclude_from_leaks = lambda: ['foo bar', 'BAZ'] 52 detector._types_to_ex lude_from_leaks = lambda: ['abcdefg', 'hi jklmno']52 detector._types_to_exclude_from_leaks = lambda: ['abcdefg', 'hi jklmno'] 53 53 expected_args = ['--exclude-callstack=foo bar', '--exclude-callstack=BAZ', '--exclude-type=abcdefg', '--exclude-type=hi jklmno', 1234] 54 54 self.assertEqual(detector._leaks_args(1234), expected_args)
Note: See TracChangeset
for help on using the changeset viewer.