mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 08:09:18 +02:00
* 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:
parent
d01e7ab86a
commit
aaf503c85f
@ -20,8 +20,16 @@ Begin
|
|||||||
end;
|
end;
|
||||||
if IsFileNameCasePreserving('tfilenamecase1.dat') then
|
if IsFileNameCasePreserving('tfilenamecase1.dat') then
|
||||||
begin
|
begin
|
||||||
if not(FileExists('Tfilenamecase1.dat')) then
|
if IsFileNameCaseSensitive('tfilenamecase1.dat') then
|
||||||
halt(1);
|
begin
|
||||||
|
if FileExists('Tfilenamecase1.dat') then
|
||||||
|
halt(1);
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
if not(FileExists('Tfilenamecase1.dat')) then
|
||||||
|
halt(1);
|
||||||
|
end
|
||||||
end;
|
end;
|
||||||
End.
|
End.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user