disable test on windows to get around bustage, CLOSED TREE
authorDavid Bienvenu <bienvenu@nventure.com>
Thu, 26 May 2011 13:47:43 -0700
changeset 7828 3f8cb2607a099e5584ab275117dcb68f9c6b2e8a
parent 7827 0cb9bf0d23c5b2299e8a6eddcbef5cf1a20bcfec
child 7829 0e7a5ae2d182716e6bea71958132fdf3f16baf17
push id11
push userbugzilla@standard8.plus.com
push dateTue, 31 May 2011 17:35:58 +0000
treeherdercomm-aurora@786e2e73ceb7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
disable test on windows to get around bustage, CLOSED TREE
mailnews/imap/test/unit/test_imapHdrChunking.js
--- a/mailnews/imap/test/unit/test_imapHdrChunking.js
+++ b/mailnews/imap/test/unit/test_imapHdrChunking.js
@@ -46,18 +46,16 @@ load("../../../resources/messageGenerato
 
 Components.utils.import("resource://gre/modules/Services.jsm");
 Components.utils.import("resource:///modules/mailServices.js");
 // javascript mime emitter functions
 
 // IMAP pump
 load("../../../resources/IMAPpump.js");
 
-setupIMAPPump();
-
 // Dummy message window so we can say the inbox is open in a window.
 var dummyMsgWindow =
 {
   openFolder : gIMAPInbox,
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIMsgWindow,
                                          Ci.nsISupportsWeakReference])
 };
 
@@ -149,16 +147,24 @@ function testHdrsDownloaded() {
 
 // Cleanup
 function endTest() {
   teardownIMAPPump();
 }
 
 function run_test()
 {
+  // XXX Disable on windows for now as it is failing there.
+  if ("@mozilla.org/windows-registry-key;1" in Cc) {
+    dump("Disabled on windows due to permanent failures\n");
+    return;
+  }
+
+  setupIMAPPump();
+
   // We need to register the dummyMsgWindow so that we'll think the
   // Inbox is open in a folder and fetch headers in chunks.
   MailServices.mailSession.AddMsgWindow(dummyMsgWindow);
   MailServices.mfn.addListener(mfnListener, MailServices.mfn.msgAdded);
 
   // Set chunk size to 3, so we'll have to chain 4 requests to get
   // 10 headers.
   Services.prefs.setIntPref("mail.imap.hdr_chunk_size", 3);