I looked into this a while ago, bug 899697 [0] has some info.
Summary: It's definitely Windows only. The only tests that fail are the
ones that expect a return code != 0. Most of these tests expect return code
3 (because they have a "|jit-test| error" comment), but I think I've also
seen tests fail that expect 6 (timeout). This happens also with very simple
tests and with shell flags that disable the JITs.
When the tests fail, they do throw the error we expect. If you look at bug
916836 for instance:
TEST-UNEXPECTED-FAIL |
e:\builds\moz2_slave\m-in-w32-000000000000000000000\build\js\src\jit-test\tests\parallel\bug858582.js
| --baseline-eager --no-ti --no-fpu: @evaluate:1:679 TypeError: cmpFunction
is not a function
The test that fails has "// |jit-test| error: TypeError", this TypeError is
the one we expect and see on other platforms. So the test itself happily
succeeds but the shell somehow returns 0 instead of 3 and the test fails.
If we wait a few more months, the sheriffs will have filed bugs for all
tests that have "|jit-test| error" or "|jit-test| exitstatus". That's only
~330 bugs...
Even if I make the shell's main() always "return 3", we reach that return
but the process exit code is still 0 every X thousand runs. Apparently this
is possible on Windows in some cases [1]. I think it requires a thread-safe
shell, it's probably something NSPR related. I also thought it didn't
happen if I make main() return before JS_DestroyRuntime, but I may be wrong
about that.
The problem started after bug 776043 [2] landed, it made the jit-test
harness check the return code. My suggestion in bug 899697 was to always
allow return code == 0 on Windows to stop these intermittent failures. It's
hiding the problem somehow, but unfortunately I don't have the time to get
to the bottom of this.. It doesn't help that it can take > 30 minutes
before a test fails, so it's hard to say whether a change "fixes" it..
Jan
[0]
https://bugzilla.mozilla.org/show_bug.cgi?id=899697
[1]
http://blogs.msdn.com/b/oldnewthing/archive/2008/05/06/8461730.aspx
[2]
https://bugzilla.mozilla.org/show_bug.cgi?id=776043
> _______________________________________________
> dev-tech-js-engine-internals mailing list
>
dev-tech-js-en...@lists.mozilla.org
>
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals
>