From cf923877a2e711a3d67496295789be95f54bfe20 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Thu, 28 Mar 2024 22:11:19 -0400 Subject: [PATCH] fix relocatable upgrades test --- test/loading.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/loading.jl b/test/loading.jl index 872ccd197f0f8..94f27ecf888bb 100644 --- a/test/loading.jl +++ b/test/loading.jl @@ -1337,7 +1337,10 @@ end @testset "relocatable upgrades #51989" begin mktempdir() do depot - project_path = joinpath(depot, "project") + # realpath is needed because Pkg is used for one of the precompile paths below, and Pkg calls realpath on the + # project path so the cache file slug will be different if the tempdir is given as a symlink + # (which it often is on MacOS) which would break the test. + project_path = joinpath(realpath(depot), "project") mkpath(project_path) # Create fake `Foo.jl` package with two files: