Bug 766886 - Disable test_streamatclose.html in debug builds for frequent leaks
authorPhil Ringnalda <philringnalda@gmail.com>
Sun, 28 Oct 2012 13:09:37 -0700
changeset 111765 a9541226ccd55d14cd2f6d35e2555f43998533ef
parent 111764 507e7ad0aa82295228eb2850e01ebf2c216534b1
child 111766 aa367b01df3f8f4640c73a64dc2b2c1349b4aff0
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
bugs766886
milestone19.0a1
Bug 766886 - Disable test_streamatclose.html in debug builds for frequent leaks
dom/plugins/test/mochitest/test_streamatclose.html
--- a/dom/plugins/test/mochitest/test_streamatclose.html
+++ b/dom/plugins/test/mochitest/test_streamatclose.html
@@ -15,16 +15,23 @@
   <script type="text/javascript">
   SimpleTest.waitForExplicitFinish();
 
   var urlnotified = false;
 
   var p = document.getElementById('embedtest');
 
   function startTest() {
+    // Skip in debug builds because of frequent leaks, bug 766886
+    if (SpecialPowers.isDebugBuild) {
+      todo(false, "test_streamatclose.html should stop leaking");
+      SimpleTest.finish();
+      return;
+    }
+
     ok(p.streamTest("neverending.sjs", false, null, null,
                     function(r, t) {
                       is(r, 2, "Stream should have failed");
                       urlnotified = true;
                     }, null, true), "neverending.sjs started successfully");
 
     setTimeout(removePlugin, 500);
   }