Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Add tests for safe_isfile()
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Apr 3, 2018
1 parent 4f3b057 commit 83a73f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,12 @@ const libfoo_downloads = Dict(
# Test manually downloading and using libfoo
@testset "Downloading" begin
temp_prefix() do prefix
foo_path = joinpath(prefix,"foo")
touch(foo_path)
# Quick one-off tests for `safe_isfile()`:
@test BinaryProvider.safe_isfile(foo_path)
@test !BinaryProvider.safe_isfile("http://google.com")

if !haskey(libfoo_downloads, platform)
Compat.@warn("Platform $platform does not have a libfoo download, skipping download tests")
else
Expand Down

0 comments on commit 83a73f5

Please sign in to comment.