mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 08:28:09 +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;
|
||||
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user