Closed Bug 446197 Opened 12 years ago Closed 12 years ago

test_not-opener.html fails intermittently on Linux unittest VM

Categories

(Core :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 451090

People

(Reporter: ted, Unassigned)

References

()

Details

(Keywords: intermittent-failure)

For some reason this test is unreliable running on a VM, it fails intermittently like so:

*** 13276 ERROR TEST-UNEXPECTED-FAIL | /tests/docshell/test/navigation/test_not-opener.html | Should not be able to navigate popup's popup by calling window.open. - got 1, expected 2
*** 13277 ERROR TEST-UNEXPECTED-FAIL | /tests/docshell/test/navigation/test_not-opener.html | Should not be able to navigate popup's popup by submitting form. - got 1, expected 2
*** 13278 ERROR TEST-UNEXPECTED-FAIL | /tests/docshell/test/navigation/test_not-opener.html | Should not be able to navigate popup's popup by targeted hyperlink. - got 1, expected 2

Colin, could you provide some insight as to why the test would fail in this manner? We've seen that a lot of timing-related assumptions fail when running unittests in a VM, but I don't understand this test well enough to see what's happening. If need be, we can check in some debug log statements in the test to help track it down.
Sounds like the VM is slow and triggering a race condition.  I'm out of the country, but when I get back I'll try to figure out if this is a race in the test or not.  Any ideas how to debug this beyond staring at the code?
We can check in dump statements to do printf-style debugging if you'd like. Sprinkle them liberally to figure out what's going on, then we'll remove them when we fix it.
See also Bug 451090.
(In reply to comment #4)
> See also Bug 451090.

+/- related: same file, different error.
Adam says these are both the same bug in the test.
No longer blocks: 408052, 438871
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 451090
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1239534294.1239541221.17434.gz
Linux mozilla-central unit test
*** 29344 ERROR TEST-UNEXPECTED-FAIL | /tests/docshell/test/navigation/test_not-opener.html | Should not be able to navigate popup's popup by submitting form. - got 1, expected 2
*** 29345 ERROR TEST-UNEXPECTED-FAIL | /tests/docshell/test/navigation/test_not-opener.html | Should not be able to navigate popup's popup by targeted hyperlink. - got 1, expected 2
Blocks: 438871
Whiteboard: [orange]
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.