Closed
Bug 456894
Opened 16 years ago
Closed 16 years ago
runtests.py can't handle negative leaks
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Dolske, Assigned: Dolske)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
dbaron
:
review+
ted
:
review+
|
Details | Diff | Splinter Review |
While investigating some failures, I found some cases where runtests.py complains "missing output line for total leaks!", when it's clearly in the output.
Example from http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1221925353.1221933011.32720.gz&fulltext=1#err46
Scroll up and you'll find:
0 TOTAL -4 63920 -1005666652 ....
Looks like the problem is the regex runtests.py uses to find the "TOTAL" line. It's not expecting negative numbers. dbaron says this can happen when bogus addref/release patterns confuse tracerefcount.
The script should catch these, and handle as a "omgwtf something is wrong" case.
Assignee | ||
Comment 1•16 years ago
|
||
How convenient, dbaron is a Test Harness peer. :-)
[I should note I haven't run this yet, but it seems like an obvious enough change.]
Assignee: nobody → dolske
Attachment #340420 -
Flags: review?(dbaron)
Assignee | ||
Comment 2•16 years ago
|
||
Added another check for one of the columns that might be negative, and tested that it works with and without negative values in the output.
Attachment #340420 -
Attachment is obsolete: true
Attachment #340472 -
Flags: review?(dbaron)
Attachment #340420 -
Flags: review?(dbaron)
Comment 3•16 years ago
|
||
Comment on attachment 340472 [details] [diff] [review]
Patch v.2
r=dbaron, although you might want to run this by whoever owns runtests.py.in.
Attachment #340472 -
Flags: review?(dbaron) → review+
Assignee | ||
Updated•16 years ago
|
Attachment #340472 -
Flags: review?(ted.mielczarek)
Updated•16 years ago
|
Attachment #340472 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 4•16 years ago
|
||
Pushed changeset 5fabcd7363bf.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b2
Updated•16 years ago
|
Component: Testing → Mochitest
Product: Core → Testing
QA Contact: testing → mochitest
Target Milestone: mozilla1.9.1b2 → ---
Version: Trunk → unspecified
You need to log in
before you can comment on or make changes to this bug.
Description
•