Open Bug 676998 Opened 14 years ago Updated 2 years ago

some xpcshell test in xpcom/tests/unit fail on Android

Categories

(Core :: XPCOM, defect)

x86
Android
defect

Tracking

()

People

(Reporter: gbrown, Unassigned)

References

Details

(Whiteboard: [mobile-testing][xpcshell])

With patches for bug 668349 and 668351, xpcshell tests can be run on an Android device, and the majority of tests pass. However, some tests in xpcom/test/unit fail when run on Android. The failing tests are: xpcom/test/unit/test_bug364285-1.js xpcom/test/unit/test_bug476919.js xpcom/test/unit/test_home.js xpcom/test/unit/test_symlinks.js xpcom/test/unit/test_systemInfo.js
Whiteboard: [mobile-testing][xpcshell]
test_bug364285-1.js fails with: TEST-UNEXPECTED-FAIL | xpcshell/head.js | [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsILocalFile.createUnique]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: test_bug364285-1.js :: create_file :: line 26" data: no] The error only occurs on the Deseret (U+10400–U+1044F) filename.
test_476919.js fails when it cannot find file "/bin/ld" -- expected. test_home.js fails trying to access the "Home" property: var dirSvc = Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties); var homeDir = dirSvc.get("Home", Ci.nsIFile); test_symlinks.js fails when it cannot find file "/bin/ld" -- expected. test_systemInfo.js fails on "memsize", on Android 2.2 and earlier -- see bug 660036 and 661351.
There are some new failures: test_nsIProcess.js fails when it tries to execute TestQuickReturn. Attemping to execute this program from the shell suggests that it was not built/linked correctly: > # ./TestQuickReturn > link_image[1995]: failed to link ./TestQuickReturn > CANNOT LINK EXECUTABLE test_bug745466.js also tries to access "Home". All the "Home" failures are caused by: https://hg.mozilla.org/mozilla-central/annotate/c24b721ca5c9/xpcom/io/SpecialSystemDirectory.cpp#l217. "Home" is intentionally not mapped to the "HOME" environment variable; this should be revisited in light of bug 749711 and earlier work.
These tests are running on tbpl now. The set of failing tests is now: [test_bug476919.js] [test_bug656331.js] [test_compmgr_warnings.js] [test_home.js] [test_nsIProcess.js] [test_symlinks.js] [test_systemInfo.js] [test_bug745466.js]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.