From 83a73f52120596f17cdb5dc9f345ffc393ea3778 Mon Sep 17 00:00:00 2001 From: "staticfloat@gmail.com" Date: Tue, 3 Apr 2018 13:59:16 -0700 Subject: [PATCH] Add tests for `safe_isfile()` --- test/runtests.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 9651c7d..ea983fd 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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