Bug 1428357 - Fix UpdateUtils test to reflect ASan ABI change. r?rstrong draft
authorChristian Holler <choller@mozilla.com>
Fri, 26 Jan 2018 02:12:53 +0100
changeset 748379 7c03c352a53017dc7df49542b82bd598187fb6e4
parent 724405 8e192301cd53b5a3bf826e8fe0b168c7ff77d0f8
push id97146
push usercholler@mozilla.com
push dateMon, 29 Jan 2018 18:22:07 +0000
reviewersrstrong
bugs1428357
milestone60.0a1
Bug 1428357 - Fix UpdateUtils test to reflect ASan ABI change. r?rstrong MozReview-Commit-ID: 6XsNNCNLb7
toolkit/modules/tests/xpcshell/test_UpdateUtils_url.js
--- a/toolkit/modules/tests/xpcshell/test_UpdateUtils_url.js
+++ b/toolkit/modules/tests/xpcshell/test_UpdateUtils_url.js
@@ -213,16 +213,21 @@ add_task(async function test_build_targe
     if (macutils.isUniversalBinary) {
       abi += "-u-" + macutils.architecturesInBinary;
     }
   } else if (AppConstants.platform == "win") {
     // Windows build should report the CPU architecture that it's running on.
     abi += "-" + getProcArchitecture();
   }
 
+  if (AppConstants.ASAN) {
+    // Allow ASan builds to receive their own updates
+    abi += "-asan";
+  }
+
   Assert.equal(await getResult(url), gAppInfo.OS + "_" + abi,
                "the url param for %BUILD_TARGET%" + MSG_SHOULD_EQUAL);
 });
 
 // url constructed with %LOCALE%
 // Bug 488936 added the update.locale file that stores the update locale
 add_task(async function test_locale() {
   // The code that gets the locale accesses the profile which is only available