Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Feb 11, 2024
1 parent 7d19ce3 commit 687d472
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions test/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1992,13 +1992,19 @@ precompile_test_harness("Issue #50538") do load_path
end

precompile_test_harness("Issue #52063") do load_path
write(joinpath(load_path, "I52063.jl"),
"""
module I52063
include_dependency("i_do_not_exist.jl")
end
""")
@test_throws ArgumentError Base.compilecache(Base.PkgId("I50538"))
fname = joinpath(load_path, "i_do_not_exist.jl")
@test_throws ArgumentError include_dependency(fname)
touch(fname)
@test include_dependency(fname) === nothing
chmod(fname, 0x000)
@test_throws ArgumentError include_dependency(fname)
dir = mktempdir() do dir
@test include_dependency(dir) === nothing
chmod(dir, 0x000)
@test_throws ArgumentError include_dependency(dir)
dir
end
@test_throws ArgumentError include_dependency(dir)
end

empty!(Base.DEPOT_PATH)
Expand Down

0 comments on commit 687d472

Please sign in to comment.