Skip to content

Commit

Permalink
Fix spawn test when env BAR is set (#39214)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jan 13, 2021
1 parent 7896e77 commit c3acba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/spawn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ end
@test strip(String(read(cmd))) == "baz bar"

# Test that `addenv()` works properly with `inherit`
withenv("FOO" => "foo") do
withenv("FOO" => "foo", "BAR" => nothing) do
cmd = Cmd(`$shcmd -c "echo \$FOO \$BAR"`)
@test strip(String(read(cmd))) == "foo"

Expand Down

0 comments on commit c3acba1

Please sign in to comment.