Closed Bug 821433 Opened 12 years ago Closed 8 years ago

ipc/testshell/tests/test_ipcshell.js fails on B2G emulator

Categories

(Testing :: XPCShell Harness, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: ahal, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

It seems like the problem is that the path passed in _TEST_FILE doesn't actually refer to the test file, so any tests that use 'load' to re-load themselves fail. This simple test should show up the problem, if that's the case.
Here's a try push, for B2G xpcshell tests only: https://tbpl.mozilla.org/?tree=Try&rev=e9b5c26e19c3
That last try push worked; here's another one that does the 'load' in a content child process:
https://tbpl.mozilla.org/?tree=Try&rev=ae959b431468
At last! That push failed! One more, with better diagnostics:
https://tbpl.mozilla.org/?tree=Try&rev=271009bf647f
14:37:08  WARNING -  TEST-UNEXPECTED-FAIL | test_load_self.js | Error: cannot open file 'test_load_self.js' for reading == true - See following stack:

Okay, that makes it pretty clear. How can we sort out the difference between the parent and child process's situation such that the parent can load the file, but the child can't?
Attachment #734804 - Attachment is obsolete: true
I'm told that B2G child processes do indeed have restricted access to the filesystem; all file I/O should be done by the parent, which should then ship the data to the child. So these tests are not properly written.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: