Closed Bug 450009 Opened 16 years ago Closed 16 years ago

Mochitest failures not making build fail

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: mossop, Assigned: harth)

References

()

Details

Attachments

(1 file)

For some reason some of the tests added in bug 424813 are failing intermittently. They are also not turning the box orange on the tinderbox. Apparently the test failure is getting logged but the test process is still returning a success.
Looking at the buildbot log, there's 
...
*** 20543 ERROR FAIL | fx module: animate option (queue === false) | Animations finished in the correct order expected: [ 1, 2, 3 ] result: [ 2, 1, 3 ]"
...
program finished with exit code 0
That's not printing a proper error output. Is that code using SimpleTest.ok()?
http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/tests/SimpleTest/SimpleTest.js#36
this is where it is using SimpleTest.ok:

http://mxr.mozilla.org/mozilla-central/source/dom/tests/mochitest/ajax/jquery/test/data/testrunner.js#148

It's in a conditional, but isn't SimpleTest.ok() what writes to the log?

http://mxr.mozilla.org/mozilla-central/source/dom/tests/mochitest/ajax/lib/SimpleTest.js#36

I'll separate this failure out and get a new patch out.
Assignee: nobody → harthur
Ah, I had no idea there were other copies of SimpleTest in the tree!

Could you apply this SimpleTest.js patch to the other copies:
http://hg.mozilla.org/mozilla-central/index.cgi/raw-diff/b2d1c3093a84/testing/mochitest/tests/SimpleTest/SimpleTest.js

(Apparently I missed this in bug 443090)
good catch. This patch syncs 
dom/tests/mochitest/ajax/lib/SimpleTest.js and
dom/tests/mochitest/ajax/mochikit/tests/SimpleTest/SimpleTest.js 
with:
testing/mochitest/tests/SimpleTest/SimpleTest.js 

and comments out the failing test in the jquery suite.
Attachment #333317 - Flags: review?(ted.mielczarek)
Comment on attachment 333317 [details] [diff] [review]
patch for updating SimpleTest.js's

r=me, but please file a new bug (if there isn't already) about the failing test, and mention the bug number in the comment.
Attachment #333317 - Flags: review?(ted.mielczarek) → review+
following up in bug 450190
checked in:
comparing with ssh://hg.mozilla.org/mozilla-central/
searching for changes
changeset:   16683:1b00cb58ed69
tag:         tip
user:        Clint Talbert <ctalbert@mozilla.com>
date:        Thu Aug 14 10:26:45 2008 -0700
summary:     Bug 450009, patch by Harthur, r=ted"

h-158:~/code/mozcentral/src clint$ hg push
Enter passphrase for key '/Users/clint/.ssh/id_dsa': 
pushing to ssh://hg.mozilla.org/mozilla-central/
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 3 changes to 3 files
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Component: Testing → DOM
QA Contact: testing → general
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: