git-svn-id: trunk@23683 -
@@ -57,7 +57,8 @@ var
Match: TFilenameCaseMatch;
begin
FN2 := ExpandFileNameCase (FN1, Match);
- if (ExpReturn <> '') and (FN2 <> ExpReturn) or (Match <> ExpMatch) then
+ if ((ExpReturn <> '') and (FN2 <> ExpReturn) or (Match <> ExpMatch)) and
+ not(FileNameCaseSensitive and (Match=mkAmbiguous) and (UpperCase(FN2)<>UpperCase(ExpReturn))) then
Inc (Failed);
WriteLn ('Error: Input = ', FN1, ', Output = ', FN2, ' (expected ', ExpReturn, '), MatchFound = ',