File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -1992,13 +1992,19 @@ precompile_test_harness("Issue #50538") do load_path
19921992end
19931993
19941994precompile_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)
20022008end
20032009
20042010empty! (Base. DEPOT_PATH )
You can’t perform that action at this time.
0 commit comments