Closed
Bug 847916
Opened 11 years ago
Closed 11 years ago
Reduce logging in robocop testBrowserProvider
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 22
People
(Reporter: gbrown, Assigned: gbrown)
Details
Attachments
(1 file, 1 obsolete file)
1.40 KB,
patch
|
gbrown
:
review+
|
Details | Diff | Splinter Review |
testBrowserProvider's assertions dominate the robocop logs, making them unwieldy. I would like to reduce the logging, especially these: 106 INFO TEST-PASS | testBrowserProvider - TestPositionBookmarks | Position matches sequence. - 0 should equal 0 107 INFO TEST-PASS | testBrowserProvider - TestPositionBookmarks | GUID matches sequence. - aaaaaaaaaaa0 should equal aaaaaaaaaaa0 108 INFO TEST-PASS | testBrowserProvider - TestPositionBookmarks | Position matches sequence. - 1 should equal 1 109 INFO TEST-PASS | testBrowserProvider - TestPositionBookmarks | GUID matches sequence. - aaaaaaaaaaa1 should equal aaaaaaaaaaa1 ... 4110 INFO TEST-PASS | testBrowserProvider - TestPositionBookmarks | GUID matches sequence. - aaaaaaaaa786 should equal aaaaaaaaa786 4111 INFO TEST-PASS | testBrowserProvider - TestPositionBookmarks | Position matches sequence. - 1000 should equal 1000 4112 INFO TEST-PASS | testBrowserProvider - TestPositionBookmarks | GUID matches sequence. - aaaaaaaaaa92 should equal aaaaaaaaaa92
Assignee | ||
Comment 1•11 years ago
|
||
You can see the reduced log at https://tbpl.mozilla.org/php/getParsedLog.php?id=20339802&tree=Try&full=1. This seems easier to scan visually.
Attachment #721218 -
Flags: review?(rnewman)
Comment 2•11 years ago
|
||
Comment on attachment 721218 [details] [diff] [review] only assert on failure for very-common assertion in loop Review of attachment 721218 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/base/tests/testBrowserProvider.java.in @@ +941,5 @@ > > while (!c.isAfterLast()) { > String guid = c.getString(guidColumn); > long pos = c.getLong(posColumn); > + if ((pos != i) || (!guid.equals(items[i]))) { Add (guid == null) || between the two checks. If the cursor is returning a null GUID, that's something we want to fall through to the assertion, and save ourselves a NPE.
Attachment #721218 -
Flags: review?(rnewman) → review+
Updated•11 years ago
|
Status: NEW → ASSIGNED
Hardware: x86 → ARM
Assignee | ||
Comment 3•11 years ago
|
||
Updated for review comment -- thanks!
Attachment #721218 -
Attachment is obsolete: true
Attachment #721434 -
Flags: review+
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0e2ca4139f64
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0e2ca4139f64
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•