Closed Bug 434234 Opened 17 years ago Closed 16 years ago

test_streamupdater.js fails when I try to run it

Categories

(Toolkit :: Safe Browsing, defect)

x86
macOS
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Waldo, Unassigned)

References

Details

test_streamupdater.js fails when I try to run it. This makes it very hard for me to run xpcshell tests as currently they fail fast rather than wait to complete before failing. It would help if these tests actually ran on tinderboxen, per bug 404208. This is the output from running the test: ../../../../_tests/xpcshell-simple/test_url-classifier/unit/test_streamupdater.js: FAIL ../../../../_tests/xpcshell-simple/test_url-classifier/unit/test_streamupdater.js.log: >>>>>>> getting file CurProcD getting file MozBinD getting file ProfD getting file ProfLD *** test pending *** test pending running function testSimpleForward() { var add1Urls = ["foo.com/a", "bar.com/c"]; var add2Urls = ["foo.com/b"]; var add3Urls = ["bar.com/d"]; var update = "n:1000\n"; update += "i:test-phish-simple\n"; var update1 = buildBareUpdate([{chunkNum: 1, urls: add1Urls}]); update += "u:data:," + encodeURIComponent(update1) + "\n"; var update2 = buildBareUpdate([{chunkNum: 2, urls: add2Urls}]); update += "u:data:," + encodeURIComponent(update2) + "\n"; var update3 = buildBareUpdate([{chunkNum: 3, urls: add3Urls}]); update += "u:data:," + encodeURIComponent(update3) + "\n"; var assertions = {tableData: "test-phish-simple;a:1-3", urlsExist: add1Urls.concat(add2Urls).concat(add3Urls)}; doTest([update], assertions, false); } *** test finished *** running event loop running function testNestedForward() { var add1Urls = ["foo.com/a", "bar.com/c"]; var add2Urls = ["foo.com/b"]; var update = "n:1000\n"; update += "i:test-phish-simple\n"; var update1 = buildBareUpdate([{chunkNum: 1, urls: add1Urls}]); update += "u:data:," + encodeURIComponent(update1) + "\n"; var update2 = buildBareUpdate([{chunkNum: 2}]); var update3 = buildBareUpdate([{chunkNum: 3, urls: add1Urls}]); update2 += "u:data:," + encodeURIComponent(update3) + "\n"; update += "u:data:," + encodeURIComponent(update2) + "\n"; var assertions = {tableData: "", urlsDontExist: add1Urls.concat(add2Urls)}; doTest([update], assertions, true); } running function testInvalidUrlForward() { var add1Urls = ["foo.com/a", "bar.com/c"]; var update = buildPhishingUpdate([{chunkNum: 1, urls: add1Urls}]); update += "u:asdf://blah/blah\n"; var assertions = {tableData: "test-phish-simple;a:1", urlsExist: add1Urls}; doTest([update], assertions, false); } getting file cachePDir ************************************************************ * Call to xpconnect wrapped JSObject produced this error: * [Exception... "'Failure' when calling method: [nsIDirectoryServiceProvider::getFile]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "<unknown>" data: no] ************************************************************ getting file cachePDir ************************************************************ * Call to xpconnect wrapped JSObject produced this error: * [Exception... "'Failure' when calling method: [nsIDirectoryServiceProvider::getFile]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "<unknown>" data: no] ************************************************************ running function testErrorUrlForward() { var add1Urls = ["foo.com/a", "bar.com/c"]; var update = buildPhishingUpdate([{chunkNum: 1, urls: add1Urls}]); update += "u:http://test.invalid/asdf/asdf\n"; var assertions = {tableData: "test-phish-simple;a:1", urlsExist: add1Urls}; doTest([update], assertions, false); } *** exiting *** CHECK FAILED: test-phish-simple; == test-phish-simple;a:1 JS frame :: /Users/jwalden/moz/2/tools/test-harness/xpcshell-simple/head.js :: do_throw :: line 99 JS frame :: /Users/jwalden/moz/2/tools/test-harness/xpcshell-simple/head.js :: do_check_eq :: line 114 JS frame :: ../../../../_tests/xpcshell-simple/test_url-classifier/unit/head_urlclassifier.js :: anonymous :: line 194 ************************************************************ * Call to xpconnect wrapped JSObject produced this error: * [Exception... "'Abort' when calling method: [nsIUrlClassifierCallback::handleEvent]" nsresult: "0x80004004 (NS_ERROR_ABORT)" location: "<unknown>" data: no] ************************************************************ *** FAIL *** WARNING: nsExceptionService ignoring thread destruction after shutdown: file /Users/jwalden/moz/2/xpcom/base/nsExceptionService.cpp, line 194 nsStringStats => mAllocCount: 3254 => mReallocCount: 81 => mFreeCount: 3254 => mShareCount: 521 => mAdoptCount: 44 => mAdoptFreeCount: 44 <<<<<<<
Can't reproduce any more.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.