diff --git a/stdlib/Profile/test/runtests.jl b/stdlib/Profile/test/runtests.jl index fc907172966977..b04e0697c20db3 100644 --- a/stdlib/Profile/test/runtests.jl +++ b/stdlib/Profile/test/runtests.jl @@ -295,7 +295,7 @@ end @testset "default save when current directory is readonly" begin tmpdir = mktempdir() fname = cd(tmpdir) do - chmod(tmpdir, 0o444) + chmod(tmpdir, 0o555) read(`$(Base.julia_cmd()) --startup-file=no -e "using Profile; print(Profile.take_heap_snapshot())"`, String) end @test !occursin(tmpdir, fname) # should not be in the given dir