Closed Bug 1073536 Opened 10 years ago Closed 10 years ago

Allow me to find out if MOZILLA_OFFICIAL is set from an xpcshell-test

Categories

(Testing :: XPCShell Harness, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla35

People

(Reporter: gfritzsche, Assigned: gfritzsche)

References

Details

Attachments

(1 file)

xpcshell.ini can tell this via |official|, but inside xpcshell-test we apparently have no way to check this.
Blocks: 1073537
While fixing a bunch of tests to not use the preprocessor I wound up just adding a bunch of things like that to nsIXULRuntime: http://hg.mozilla.org/mozilla-central/annotate/5e704397529b/xpcom/system/nsIXULRuntime.idl#l143 They're pretty trivial to implement if you want to go that route: http://hg.mozilla.org/mozilla-central/annotate/5e704397529b/toolkit/xre/nsAppRunner.cpp#l946
Ted, can you review this?
Assignee: nobody → georg.fritzsche
Status: NEW → ASSIGNED
Attachment #8501033 - Flags: review?(ted)
Attachment #8501033 - Flags: review?(ted) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Blocks: 1085146
Blocks: 1085162
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: