Bug 1637531 - Fix Linux enterprise tests after bug 1469629. r=mkmelin DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Wed, 13 May 2020 13:43:19 +0300
changeset 38244 68b1bb3d8e1afaec1549b1150d046e2cbb6d69a9
parent 38243 f42a53d1dc7977bfaed612cd3acd256a92d04510
child 38245 79a064e00626b4e1b0af8375076d250e03bdf466
push id2607
push userclokep@gmail.com
push dateMon, 01 Jun 2020 20:50:20 +0000
treeherdercomm-beta@9d45cd34927b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs1637531, 1469629
Bug 1637531 - Fix Linux enterprise tests after bug 1469629. r=mkmelin DONTBUILD
mail/components/enterprisepolicies/tests/xpcshell/head.js
--- a/mail/components/enterprisepolicies/tests/xpcshell/head.js
+++ b/mail/components/enterprisepolicies/tests/xpcshell/head.js
@@ -4,20 +4,30 @@
 
 "use strict";
 
 const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
 const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm");
 const { Preferences } = ChromeUtils.import(
   "resource://gre/modules/Preferences.jsm"
 );
+const { updateAppInfo, getAppInfo } = ChromeUtils.import(
+  "resource://testing-common/AppInfo.jsm"
+);
 const { FileTestUtils } = ChromeUtils.import(
   "resource://testing-common/FileTestUtils.jsm"
 );
 
+updateAppInfo({
+  name: "XPCShell",
+  ID: "xpcshell@tests.mozilla.org",
+  version: "48",
+  platformVersion: "48",
+});
+
 // This initializes the policy engine for xpcshell tests
 let policies = Cc["@mozilla.org/enterprisepolicies;1"].getService(
   Ci.nsIObserver
 );
 policies.observe(null, "policies-startup", null);
 
 // Any changes to this function should also be made to the corresponding version
 // in browser/components/enterprisepolicies/tests/browser/head.js