Skip to content

Commit

Permalink
add test with links
Browse files Browse the repository at this point in the history
  • Loading branch information
hayd committed Jun 4, 2014
1 parent f2a1bd3 commit 474c025
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,18 @@ b_stat = stat(b_tmpdir)

rmdir(b_tmpdir)

# rmdir recursive TODO add links
# rmdir recursive with links
c_tmpdir = mktempdir()
c_subdir = joinpath(c_tmpdir, "c_subdir")
mkdir(c_subdir)
c_file = joinpath(c_tmpdir, "cfile.txt")
cp(newfile, c_file)
c_link = joinpath(c_tmpdir, "c_link")
run(`ln -s $c_file $c_link`)

@test isdir(c_subdir)
@test isfile(c_file)
@test islink(c_link)
@test_throws rmdir(c_tmpdir)

rmdir(c_tmpdir, true)
Expand Down

0 comments on commit 474c025

Please sign in to comment.