Make NRWT consider all lines of output from parse-malloc-history, not just the first
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Nov 2011 15:15:44 +0000 (15:15 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Nov 2011 15:15:44 +0000 (15:15 +0000)
commit7f371ede2472134fdffb8b596bdad8bb1d481f41
tree9ba08878575285fa87bfeb581fac6a12aee9109d
parent548fcb8664440210ef71ef1dc7f7d9ef7cbb1de0
Make NRWT consider all lines of output from parse-malloc-history, not just the first

Fixes <http://webkit.org/b/72652> REGRESSION (NRWT): NRWT always reports "1 unique leaks
found" even when there are more than 1 unique leaks

Reviewed by Darin Adler.

* Scripts/webkitpy/layout_tests/port/leakdetector.py:
(LeakDetector.count_total_bytes_and_unique_leaks): Pass re.MULTILINE to re.findall so that
"^" will be considered to match the beginning of any line, not only the beginning of the
string.

* Scripts/webkitpy/layout_tests/port/leakdetector_unittest.py:
(LeakDetectorTest.test_count_total_bytes_and_unique_leaks): Added a second callstack to the
fake output and updated expectations to match.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/layout_tests/port/leakdetector.py
Tools/Scripts/webkitpy/layout_tests/port/leakdetector_unittest.py