Closed
Bug 1206143
Opened 10 years ago
Closed 10 years ago
Cu.import("resource://testing-common/httpd.js"); fails in locally-run xpcshell tests
Categories
(Testing :: XPCShell Harness, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1206073
People
(Reporter: keeler, Unassigned)
Details
Running any xpcshell test that calls 'Cu.import("resource://testing-common/httpd.js");' locally results in things like:
> ./mach xpcshell-test netwerk/test/unit/test_307_redirect.js
From _tests: Kept 40762 existing; Added/updated 0; Removed 0 files and 0 directories.
0:00.48 LOG: MainThread INFO Running tests sequentially.
0:00.48 SUITE_START: MainThread 1
0:00.49 LOG: Thread-1 INFO profile dir is /tmp/firefox/xpcshellprofile
0:00.50 TEST_START: Thread-1 netwerk/test/unit/test_307_redirect.js
0:01.05 TEST_END: Thread-1 FAIL, expected PASS
xpcshell return code: 0
0:01.05 LOG: Thread-1 INFO >>>>>>>
0:00.93 LOG: Thread-1 ERROR NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
@/home/keeler/mozilla-central/obj-x86_64-unknown-linux-gnu/_tests/xpcshell/netwerk/test/unit/test_307_redirect.js:1:1
load_file@/home/keeler/mozilla-central/testing/xpcshell/head.js:602:7
_load_files@/home/keeler/mozilla-central/testing/xpcshell/head.js:614:3
_execute_test@/home/keeler/mozilla-central/testing/xpcshell/head.js:496:3
@-e:1:1
0:00.94 LOG: Thread-1 INFO (xpcshell/head.js) | test MAIN run_test pending (1)
0:00.94 LOG: Thread-1 ERROR ReferenceError: HttpServer is not defined at /home/keeler/mozilla-central/obj-x86_64-unknown-linux-gnu/_tests/xpcshell/netwerk/test/unit/test_307_redirect.js:82
run_test@/home/keeler/mozilla-central/obj-x86_64-unknown-linux-gnu/_tests/xpcshell/netwerk/test/unit/test_307_redirect.js:82:3
_execute_test@/home/keeler/mozilla-central/testing/xpcshell/head.js:510:7
@-e:1:1
(The line in question is just 'Cu.import("resource://testing-common/httpd.js");')
It's difficult to get much work done when this is happening.
| Reporter | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•