Skip to content

Commit

Permalink
Add test for and close #12671, starting from non directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman committed Jan 15, 2016
1 parent d4749d2 commit eb40529
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,13 @@ let exename = `$(joinpath(JULIA_HOME, Base.julia_exename())) --precompiled=yes`
@test readchomp(`$exename --compilecache=yes -E "Bool(Base.JLOptions().use_compilecache)"`) == "true"
@test readchomp(`$exename --compilecache=no -E "Bool(Base.JLOptions().use_compilecache)"`) == "false"
@test !success(`$exename --compilecache=foo -e "exit(0)"`)

# issue #12671, starting from a non-directory
let testdir = tempname()
mkdir(testdir)
cd(testdir) do
rm(testdir)
@test success(`$exename -e`)
end
end
end

0 comments on commit eb40529

Please sign in to comment.