Skip to content

Commit

Permalink
modify path for tests that shell out on windows
Browse files Browse the repository at this point in the history
without this, 0.5 nightlies (though new nightlies haven't been built for about a week, so not yet)
and 0.4.2 will call the windows native versions of these rather than coreutils,
giving either different line endings or more substantially different behavior
  • Loading branch information
tkelman committed Jan 26, 2016
1 parent 5559bce commit db2973a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ end
@test CartesianTest.f(1,2,3,4) == (1,2,3,4)
@test CartesianTest.f(1,2,3,4,5) == (1,2,3,4,5)

@test readall(pipeline(`echo hello`, `sort`)) == "hello\n"
@test success(pipeline(`true`, `true`))
extrapath = @windows? joinpath(JULIA_HOME,"..","Git","usr","bin")*";" : ""
@compat withenv("PATH" => extrapath * ENV["PATH"]) do
@test readall(pipeline(`echo hello`, `sort`)) == "hello\n"
@test success(pipeline(`true`, `true`))
end

let convert_funcs_and_types =
((integer, :Integer), (signed, :Signed), (unsigned, :Unsigned),
Expand Down

0 comments on commit db2973a

Please sign in to comment.