Skip to content

Commit

Permalink
fix temporary file left open, causing warnings on win CI (#29590)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored Oct 17, 2018
1 parent 2a9271a commit f068f21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,12 @@ let exename = `$(Base.julia_cmd()) --sysimage-native-code=yes --startup-file=no`

# test passing arguments
mktempdir() do dir
testfile, _ = mktemp(dir)
testfile, io = mktemp(dir)
# write a julia source file that just prints ARGS to stdout
write(testfile, """
write(io, """
println(ARGS)
""")
close(io)
mkpath(joinpath(dir, ".julia", "config"))
cp(testfile, joinpath(dir, ".julia", "config", "startup.jl"))

Expand Down

0 comments on commit f068f21

Please sign in to comment.