3 add_task(async function test_getEnvironment() {
4 Services.env.set("FOO", "BAR");
6 let environment = Subprocess.getEnvironment();
8 equal(environment.FOO, "BAR");
9 equal(environment.PATH, Services.env.get("PATH"));
11 Services.env.set("FOO", null);
13 environment = Subprocess.getEnvironment();
14 equal(environment.FOO || "", "");