Closed Bug 1488227 Opened 6 years ago Closed 6 years ago

Unhandled exceptions during OOM testing cause the shell to exit with an error

Categories

(Core :: JavaScript Engine, enhancement)

61 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

The destructor of the shell class AutoReportException sets the shell exit code to either EXITCODE_OUT_OF_MEMORY or EXITCODE_RUNTIME_ERROR on unhandled exceptions.  These occurs normally during OOM testing if we simulate OOM (or related error) in a problematic place.  This leads to tests that 'fail' after a successful oomTest().
Patch to skip setting shell exit code on unhandled exception during OOM testing.

This means we can remove all the expected test failures for oomTests that trigger this, mostly debugger tests.

I had to fix the debug/bug1272908.js test so that it ran at all - I guess 'slow' tests don't get run too often.
Attachment #9006022 - Flags: review?(nicolas.b.pierron)
Comment on attachment 9006022 [details] [diff] [review]
bug1488227-shell-exit

Review of attachment 9006022 [details] [diff] [review]:
-----------------------------------------------------------------

Good catch!
Attachment #9006022 - Flags: review?(nicolas.b.pierron) → review+
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4280f360fdb9
Don't set shell exit code during OOM testing r=nbp
https://hg.mozilla.org/mozilla-central/rev/4280f360fdb9
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Target Milestone: mozilla64 → mozilla63
Target Milestone: mozilla63 → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: