Closed
Bug 1028887
Opened 11 years ago
Closed 11 years ago
Autoclosing a Sqlite.jsm database should cause tests to fail
Categories
(Toolkit :: Async Tooling, defect)
Toolkit
Async Tooling
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: Yoric, Assigned: brennan.brisad)
References
Details
Attachments
(1 file, 1 obsolete file)
|
5.92 KB,
patch
|
Details | Diff | Splinter Review |
Bug 939072 introduces auto-closing of Sqlite.jsm databases. This prints a warning. We should also ensure that this causes tests to fail.
For this purpose, it would be sufficient to insert an (uncatchable) `Promise.reject` whenever we autoclose a database.
| Reporter | ||
Comment 1•11 years ago
|
||
Do you want to handle this, Michael?
Flags: needinfo?(brennan.brisad)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → brennan.brisad
| Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8446018 -
Flags: review?(dteller)
| Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8446018 [details] [diff] [review]
Cause tests to fail on autoclose
Review of attachment 8446018 [details] [diff] [review]:
-----------------------------------------------------------------
r=me, with the minor nit below
If this kills existing tests, of course, you'll need to fix them, too.
::: toolkit/modules/Sqlite.jsm
@@ +57,5 @@
> consoleMessage.init(message, stack.fileName, null, stack.lineNumber, 0,
> Ci.nsIScriptError.errorFlag, "component javascript");
> Services.console.logMessage(consoleMessage);
>
> + if (Debugging.failTestsOnAutoClose) {
Could you add a comment explaining why you do this?
Attachment #8446018 -
Flags: review?(dteller) → review+
| Assignee | ||
Comment 5•11 years ago
|
||
Added comment mentioned in review. No other tests failed.
Attachment #8446018 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•11 years ago
|
||
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 7•11 years ago
|
||
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•