Closed Bug 854209 Opened 12 years ago Closed 12 years ago

add asm.js mochitests

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: luke, Assigned: luke)

References

Details

Attachments

(1 file)

OdinMonkey has a bunch of unit tests in js/src/jit-tests/tests/asm.js, but we need some browser tests as well: - crashing with asm.js (testing breakpad) - out-of-bounds and slow-script exceptions handled by Odin - asm.js code running in a web worker - something non-trivial like zlib
A web worker test is in 854197, hope it's helpful.
Bug 854197, I meant.
Blocks: 854599
Ted: I'd like to write a mochitest that runs asm.js, triggers some faults that the asm.js signal handler handles, then triggers a real crash that breakpad handles. Is there any way to do this from a mochitest, or does it require xpcshell (which requires 842728 to be fixed)?
You can't crash a Mochitest and handle it. You can crash a plugin or a content process, but I'm not sure if either of those would test what you want. We may need to fix the xpcshell thing to test this properly.
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #4) Ah, ok. Any plans to do that in the near term? It'd be great to get in an automated test to catch signal handler regressions wrt breakpad.
Here's a first round that verifies asm.js optimizations, hits asm.js-handled faults, and runs asm.js code in a worker. The only thing pending is adding an xpconnect test that the crash handler works when asm.js handlers have been installed (which has been hand-verified, of course). But that will have to block on bug 842728.
Assignee: general → luke
Status: NEW → ASSIGNED
Attachment #743821 - Flags: review?(sstangl)
Attachment #743821 - Flags: review?(sstangl) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: