Closed Bug 1139780 Opened 9 years ago Closed 9 years ago

Only app update xpcshell tests that need debugging should have debug output

Categories

(Toolkit :: Application Update, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

Details

Attachments

(1 file, 1 obsolete file)

The tests have been spamming the log files with debug messages for a long time and only the tests that intermittently fail should add the debug messages to the logs.
OS: Windows 8.1 → All
Hardware: x86_64 → All
Attached patch patch (obsolete) — Splinter Review
Stephen, this replaces a bunch of logTestInfo messages with debugDump messages and adds DEBUG_AUS_TEST = true to the tests that have intermittent bugs open. A skim through of the changes should be all that is needed and I'll push this to try as well for assurance.
Attachment #8573107 - Flags: review?(spohl.mozilla.bugs)
Comment on attachment 8573107 [details] [diff] [review]
patch

Review of attachment 8573107 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/mozapps/update/tests/unit_timermanager/consumerNotifications.js
@@ +472,5 @@
> + *         An optional Components.stack.caller. If not specified
> + *         Components.stack.caller will be used.
> + */
> +function logTestInfo(aText, aCaller) {
> +  let caller = (aCaller ? aCaller : Components.stack.caller);

nit: drop parentheses

@@ +498,5 @@
> + *         Components.stack.caller will be used.
> + */
> +function debugDump(aText, aCaller) {
> +  if (DEBUG_TEST) {
> +    let caller = aCaller ? aCaller : Components.stack.caller;

Let's drop this line and pass aCaller to logTestInfo() directly.
Attachment #8573107 - Flags: review?(spohl.mozilla.bugs) → review+
Attachment #8573107 - Attachment is obsolete: true
Attachment #8573478 - Flags: review+
Pushed to fx-team
https://hg.mozilla.org/integration/fx-team/rev/6f6455b2f8b5
Flags: in-testsuite+
Target Milestone: --- → mozilla39
https://hg.mozilla.org/mozilla-central/rev/6f6455b2f8b5
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: