Skip to content

Commit

Permalink
Bug 1541508 - Use Services.env in memory/ r=mccr8
Browse files Browse the repository at this point in the history
  • Loading branch information
Barret Rennie committed Nov 2, 2022
1 parent 267a101 commit 5342e30
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions memory/replace/dmd/test/test_dmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ const { FileUtils } = ChromeUtils.importESModule(
);

// The xpcshell test harness sets PYTHON so we can read it here.
var gEnv = Cc["@mozilla.org/process/environment;1"].getService(
Ci.nsIEnvironment
);
var gPythonName = gEnv.get("PYTHON");
var gPythonName = Services.env.get("PYTHON");

// If we're testing locally, the executable file is in "CurProcD". Otherwise,
// it is in another location that we have to find.
Expand Down Expand Up @@ -137,7 +134,7 @@ function run_test() {
// in-place (to fix stacks) when it runs dmd.py, and that's not safe to do
// asynchronously.

gEnv.set("DMD", "1");
Services.env.set("DMD", "1");

runProcess(gDmdTestFile, []);

Expand Down

0 comments on commit 5342e30

Please sign in to comment.