File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,15 @@ mktempdir() do dir
7777 @test Base. isfile_casesensitive (true_filename)
7878 @test ! Base. isfile_casesensitive (lowered_filename)
7979
80+ # check that case-sensitivity is preserved for relative paths with ghost directories:
81+ @test Base. isfile_casesensitive (joinpath (" nonexistent" , " .." , true_filename))
82+ @test ! Base. isfile_casesensitive (joinpath (" nonexistent" , " .." , lowered_filename))
83+
84+ # check that case-sensitivity is preserved for relative paths with real directories:
85+ mkdir (" realdir" )
86+ @test Base. isfile_casesensitive (joinpath (" realdir" , " .." , true_filename))
87+ @test ! Base. isfile_casesensitive (joinpath (" realdir" , " .." , lowered_filename))
88+
8089 # check that case-sensitivity only applies to basename of a path:
8190 if isfile (lowered_filename) # case-insensitive filesystem
8291 mkdir (" cAsEtEsT" )
You can’t perform that action at this time.
0 commit comments