Bug 1116664 - test_crash_nested_loop.html really does intermittently intend to use a flaky timeout, r=ehsan
authorPhil Ringnalda <philringnalda@gmail.com>
Wed, 31 Dec 2014 22:27:10 -0800
changeset 247769 02c333a2740872767762265da4d6bbf01be5aff2
parent 247768 12eb2a10b584566eef05365237deec4e376268f9
child 247770 811c950c8df604231b2e112c0f7657b25452216f
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1116664
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1116664 - test_crash_nested_loop.html really does intermittently intend to use a flaky timeout, r=ehsan
dom/plugins/test/mochitest/test_crash_nested_loop.html
--- a/dom/plugins/test/mochitest/test_crash_nested_loop.html
+++ b/dom/plugins/test/mochitest/test_crash_nested_loop.html
@@ -22,16 +22,17 @@
     // If we hit that bug, the browser process would crash when the plugin
     // crashes in crashInNestedLoop.  If not, we'll pass "spuriously".
     try {
       p.crashInNestedLoop();
       // The plugin didn't crash when expected.  This happens sometimes.  Give
       // it longer to crash.  If it crashes (but not at the apropriate time),
       // soft fail with a todo; if it doesn't crash then something went wrong,
       // so fail.
+      SimpleTest.requestFlakyTimeout("sometimes the plugin takes a little longer to crash");
       setTimeout(
         function() {
           try {
             p.getPaintCount();
             ok(false, "plugin should crash");
           } catch (e) {
             todo(false, "p.crashInNestedLoop() should throw an exception");
           }