mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 22:10:19 +02:00
Fix for failures on FileNameCaseSensitive systems
git-svn-id: trunk@29609 -
This commit is contained in:
parent
7001a02ac6
commit
488024ea5c
@ -57,8 +57,9 @@ var
|
||||
Match: TFilenameCaseMatch;
|
||||
begin
|
||||
FN2 := ExpandFileNameCase (FN1, Match);
|
||||
if ((ExpReturn <> '') and (FN2 <> ExpReturn) or (Match <> ExpMatch)) and
|
||||
not(FileNameCaseSensitive and (Match=mkAmbiguous) and (UpperCase(FN2)<>UpperCase(ExpReturn))) then
|
||||
if (Match <> ExpMatch) or ((ExpReturn <> '') and (FN2 <> ExpReturn) and
|
||||
((Match <> mkAmbiguous) or not (FileNameCaseSensitive) or
|
||||
(UpperCase (FN2) <> UpperCase (ExpReturn)))) then
|
||||
begin
|
||||
Inc (Failed);
|
||||
WriteLn ('Error: Input = ', FN1, ', Output = ', FN2, ' (expected ', ExpReturn, '), MatchFound = ',
|
||||
|
Loading…
Reference in New Issue
Block a user