Bug 1498054 - Increase timeout for browser extension tests under asan. r=kmag
authorEric Rahm <erahm@mozilla.com>
Wed, 10 Oct 2018 15:57:53 -0700
changeset 496381 444dcbb477f47e8b12179f7fb813d23f3c21c521
parent 496380 ca79a952c3905158d163f06a0132b69857901be2
child 496382 98c8f1d6a5d20ee61ea0feee52a1be689b3338c4
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1498054
milestone64.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 1498054 - Increase timeout for browser extension tests under asan. r=kmag
browser/components/extensions/test/browser/head.js
--- a/browser/components/extensions/test/browser/head.js
+++ b/browser/components/extensions/test/browser/head.js
@@ -38,16 +38,21 @@ const {AppConstants} = ChromeUtils.impor
 const {CustomizableUI} = ChromeUtils.import("resource:///modules/CustomizableUI.jsm", {});
 const {Preferences} = ChromeUtils.import("resource://gre/modules/Preferences.jsm", {});
 
 XPCOMUtils.defineLazyGetter(this, "Management", () => {
   const {Management} = ChromeUtils.import("resource://gre/modules/Extension.jsm", {});
   return Management;
 });
 
+// The extension tests can run a lot slower under ASAN.
+if (AppConstants.ASAN) {
+  SimpleTest.requestLongerTimeout(10);
+}
+
 // We run tests under two different configurations, from browser.ini and
 // browser-remote.ini. When running from browser-remote.ini, the tests are
 // copied to the sub-directory "test-oop-extensions", which we detect here, and
 // use to select our configuration.
 let remote = gTestPath.includes("test-oop-extensions");
 SpecialPowers.pushPrefEnv({set: [
   ["extensions.webextensions.remote", remote],
 ]});