Skip to content

Commit 687d472

Browse files
committed
update test
1 parent 7d19ce3 commit 687d472

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

test/precompile.jl

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,13 +1992,19 @@ precompile_test_harness("Issue #50538") do load_path
19921992
end
19931993

19941994
precompile_test_harness("Issue #52063") do load_path
1995-
write(joinpath(load_path, "I52063.jl"),
1996-
"""
1997-
module I52063
1998-
include_dependency("i_do_not_exist.jl")
1999-
end
2000-
""")
2001-
@test_throws ArgumentError Base.compilecache(Base.PkgId("I50538"))
1995+
fname = joinpath(load_path, "i_do_not_exist.jl")
1996+
@test_throws ArgumentError include_dependency(fname)
1997+
touch(fname)
1998+
@test include_dependency(fname) === nothing
1999+
chmod(fname, 0x000)
2000+
@test_throws ArgumentError include_dependency(fname)
2001+
dir = mktempdir() do dir
2002+
@test include_dependency(dir) === nothing
2003+
chmod(dir, 0x000)
2004+
@test_throws ArgumentError include_dependency(dir)
2005+
dir
2006+
end
2007+
@test_throws ArgumentError include_dependency(dir)
20022008
end
20032009

20042010
empty!(Base.DEPOT_PATH)

0 commit comments

Comments
 (0)