* fix test for case sensitive and case preserving file systems

git-svn-id: trunk@49183 -
(cherry picked from commit f1e748512b)
This commit is contained in:
florian 2021-04-11 17:30:22 +00:00 committed by marcoonthegit
parent d01e7ab86a
commit aaf503c85f

View File

@ -20,8 +20,16 @@ Begin
end;
if IsFileNameCasePreserving('tfilenamecase1.dat') then
begin
if not(FileExists('Tfilenamecase1.dat')) then
halt(1);
if IsFileNameCaseSensitive('tfilenamecase1.dat') then
begin
if FileExists('Tfilenamecase1.dat') then
halt(1);
end
else
begin
if not(FileExists('Tfilenamecase1.dat')) then
halt(1);
end
end;
End.