Skip to content

Commit

Permalink
Fix spawn test when env BAR is set (JuliaLang#39214)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus authored and antoine-levitt committed May 9, 2021
1 parent 4f95561 commit 3fb30b2
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 3fb30b2

Please sign in to comment.