git-svn-id: trunk@49183 - (cherry picked from commit f1e748512bfa4c4f4d9aafa1eb69ad7528c3e4ff)
@@ -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
+ if not(FileExists('Tfilenamecase1.dat')) then
End.