Closed Bug 749771 Opened 13 years ago Closed 13 years ago

some xpcshell tests fail on Android because HOME environment variable is not set

Categories

(Testing :: XPCShell Harness, defect)

x86
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla15

People

(Reporter: gbrown, Assigned: gbrown)

References

Details

Attachments

(1 file)

Some xpcshell tests - like netwerk/test/unit/test_NetUtil.js - fail if xpcshell does not have a HOME environment variable. $HOME is almost universally available in Unix environments...but isn't set by default in many Android environments. Fennec gets around this problem by setting $HOME itself: https://hg.mozilla.org/mozilla-central/annotate/0f8ea3826bf7/mobile/android/base/GeckoAppShell.java#l374.
Blocks: 675039
Attachment #619166 - Flags: review?(jmaher)
Comment on attachment 619166 [details] [diff] [review] set xpcshell's $HOME to the profile directory Review of attachment 619166 [details] [diff] [review]: ----------------------------------------------------------------- nice and simple
Attachment #619166 - Flags: review?(jmaher) → review+
Keywords: checkin-needed
Flags: in-testsuite+
Keywords: checkin-needed
Target Milestone: --- → mozilla15
Status: NEW → RESOLVED
Closed: 13 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: