Closed
Bug 503662
Opened 15 years ago
Closed 7 years ago
Stop using tail_ files in xpcshell: use do_register_cleanup() instead, in MailNews
Categories
(MailNews Core :: Testing Infrastructure, defect)
MailNews Core
Testing Infrastructure
Tracking
(thunderbird3.1 wontfix)
RESOLVED
FIXED
Thunderbird 53.0
Tracking | Status | |
---|---|---|
thunderbird3.1 | --- | wontfix |
People
(Reporter: sgautherie, Assigned: standard8, Mentored)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [good first bug][lang=js])
Attachments
(1 file, 1 obsolete file)
20.07 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Flags: in-testsuite-
Reporter | ||
Updated•15 years ago
|
Whiteboard: [Waiting for bug 502907 to land on 1.9.1.x]
Reporter | ||
Updated•15 years ago
|
Reporter | ||
Comment 1•15 years ago
|
||
[ /mailnews/addrbook/test/unit/tail_addrbook.js /mailnews/base/test/unit/tail_base.js /mailnews/compose/test/unit/tail_compose.js /mailnews/db/gloda/test/unit/tail_gloda.js /mailnews/db/msgdb/test/unit/tail_msgdb.js /mailnews/extensions/bayesian-spam-filter/test/unit/tail_bayesian.js /mailnews/imap/test/unit/tail_imap.js /mailnews/import/test/unit/tail_import.js /mailnews/local/test/unit/tail_local.js /mailnews/news/test/unit/tail_news.js /mailnews/mime/test/unit/tail_mime.js ]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [Waiting for bug 502907 to land on 1.9.1.x]
Reporter | ||
Comment 2•15 years ago
|
||
They all just call |load("../../mailnews/resources/mailShutdown.js");|. So it should be trivial to move this call to the cooresponding head files.
Whiteboard: [good first bug]
Reporter | ||
Comment 3•15 years ago
|
||
Just fix "same case" [ /mail/base/test/unit/tail_base.js ] too.
Reporter | ||
Updated•14 years ago
|
status-thunderbird3.1:
--- → ?
Component: Backend → Testing Infrastructure
QA Contact: backend → testing-infrastructure
Assignee | ||
Comment 4•14 years ago
|
||
This isn't a bug for 3.1, this isn't needed on what is very soon going to be a stable branch as it doesn't actually buy us anything there. Its would be a good improvement going forward, but totally unnecessary to rush in before 3.1 or try and port across afterwards.
Reporter | ||
Updated•12 years ago
|
Whiteboard: [good first bug] → [good first bug][mentor=sgautherie][lang=js]
Is this what is wanted here?
Attachment #766842 -
Flags: review?(mbanner)
Attachment #766842 -
Flags: feedback?(sgautherie.bz)
Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 766842 [details] [diff] [review] patch Review of attachment 766842 [details] [diff] [review]: ----------------------------------------------------------------- Iirc, this patch seems to look like what I expected : f+ for that (only). ::: mail/base/test/unit/head_mailbase.js @@ +2,5 @@ > > // Import the main scripts that mail tests need to set up and tear down > load("../../../../mailnews/resources/mailDirService.js"); > load("../../../../mailnews/resources/mailTestUtils.js"); > +do_register_cleanup(function() { (My) Nits, fwiw: *Ensure there is a blank line before do_register_cleanup() everywhere. *Name the inner function.
Attachment #766842 -
Flags: feedback?(sgautherie.bz) → feedback+
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 766842 [details] [diff] [review] patch Review of attachment 766842 [details] [diff] [review]: ----------------------------------------------------------------- ::: mailnews/imap/test/unit/head_server.js @@ +79,5 @@ > do_check_eq(realTransaction.join(", "), expected.join(", ")); > } > + > +do_register_cleanup(function() { > + load(gDEPTH + "mailnews/resources/mailShutdown.js"); It seems a bit strange to suddenly switch to using gDEPTH but not use it anywhere else.
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 766842 [details] [diff] [review] patch Looks fine, but I'd like to see what you think we should do for consistency before giving this the r+
Attachment #766842 -
Flags: review?(mbanner) → feedback+
Updated•10 years ago
|
Mentor: bugzillamozillaorg_serge_20140323
Whiteboard: [good first bug][mentor=sgautherie][lang=js] → [good first bug][lang=js]
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → standard8
Assignee | ||
Comment 9•7 years ago
|
||
Lets get this landed (as I'm also getting bug 527444 landed), then we can just drop handling of tail files from xpcshell completely.
Attachment #766842 -
Attachment is obsolete: true
Attachment #8826239 -
Flags: review?(Pidgeot18)
Assignee | ||
Updated•7 years ago
|
Attachment #8826239 -
Flags: review?(Pidgeot18) → review?(acelists)
Comment 10•7 years ago
|
||
Jorg, please run this through the try server for me. xpcshell is enough.
Flags: needinfo?(jorgk)
Comment 11•7 years ago
|
||
Next time, please let me know which platforms and opt/debug you want. Here's the cheapest version: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=a97a6d35db9562042ebe788542cdfdc2072051ca
Flags: needinfo?(jorgk)
Comment 12•7 years ago
|
||
Comment on attachment 8826239 [details] [diff] [review] Updated patch to remove tail files from comm-central Review of attachment 8826239 [details] [diff] [review]: ----------------------------------------------------------------- Seems to work, thanks.
Attachment #8826239 -
Flags: review?(acelists) → review+
Assignee | ||
Comment 13•7 years ago
|
||
https://hg.mozilla.org/comm-central/rev/0b4789cf7743bd1e3319eca637b649f9f9491fc9 Bug 503662 - Stop using tail_ files in xpcshell: use do_register_cleanup() instead. r=aceman
Assignee | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 53.0
You need to log in
before you can comment on or make changes to this bug.
Description
•