Bug 1331152 - disable leak sanitizer in headless screenshot test subprocess; r=mccr8
authorMyk Melez <myk@mykzilla.org>
Fri, 03 Nov 2017 13:24:47 -0700
changeset 443437 8dfcfe1bd1557366bf49eb97b66f43a64b459c36
parent 443388 7ee2f9d5bdcc7fa122f21c05244426eaa50d0b56
child 443438 4350a326a49805c6138aabd0ed68136498bf97cd
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1331152
milestone58.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 1331152 - disable leak sanitizer in headless screenshot test subprocess; r=mccr8
browser/components/shell/test/test_headless_screenshot.html
--- a/browser/components/shell/test/test_headless_screenshot.html
+++ b/browser/components/shell/test/test_headless_screenshot.html
@@ -27,16 +27,21 @@ https://bugzilla.mozilla.org/show_bug.cg
     const prefsPath = OS.Path.join(profilePath, mochiPrefsName);
     const firefoxArgs = ["-profile", profilePath, "-no-remote"];
 
     await OS.File.makeDir(profilePath);
     await OS.File.copy(mochiPrefsPath, prefsPath);
     let proc = await Subprocess.call({
       command: firefoxExe,
       arguments: firefoxArgs.concat(args),
+      // Disable leak detection to avoid intermittent failure bug 1331152.
+      environmentAppend: true,
+      environment: {
+        ASAN_OPTIONS: "detect_leaks=0:quarantine_size=50331648:malloc_context_size=5",
+      },
     });
     let stdout;
     while ((stdout = await proc.stdout.readString())) {
       dump(">>> " + stdout + "\n");
     }
     let {exitCode} = await proc.wait();
     is(exitCode, 0, "Firefox process should exit with code 0");
     await OS.File.removeDir(profilePath);