From 8e75fd2d2921b3908864aff4b714e26e6791d0a6 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Sat, 8 Nov 2014 17:18:01 +0100 Subject: [PATCH] Use tempname() instead of custom file path in test/pkg.jl Fixes calling Base.runtests("pkg") when Julia is installed in a prefix where typical user does not have write access. --- test/pkg.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pkg.jl b/test/pkg.jl index fc696eff12b77..7e1fc143dcf0a 100644 --- a/test/pkg.jl +++ b/test/pkg.jl @@ -1,6 +1,6 @@ function temp_pkg_dir(fn::Function) # Used in tests below to setup and teardown a sandboxed package directory - const tmpdir = ENV["JULIA_PKGDIR"] = abspath(string("tmp.",randstring())) + const tmpdir = ENV["JULIA_PKGDIR"] = tempname() @test !isdir(Pkg.dir()) try Pkg.init()