mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 10:58:23 +02:00
* fix one test failure for unixes
This commit is contained in:
parent
d4d4498fc0
commit
87321a0e67
@ -388,7 +388,7 @@ class constructor TPath.Create;
|
||||
var
|
||||
C : Char;
|
||||
begin
|
||||
FAltDirectorySeparatorChar:=#0;;
|
||||
FAltDirectorySeparatorChar:=#0;
|
||||
For C in AllowDirectorySeparators do
|
||||
if (C<>System.DirectorySeparator) and (FAltDirectorySeparatorChar=#0) then
|
||||
FAltDirectorySeparatorChar:=C;
|
||||
|
@ -1086,6 +1086,8 @@ procedure TTestTPath.TestAltDirectorySeparatorChar;
|
||||
begin
|
||||
{$ifdef Windows}
|
||||
AssertEquals('/',TPath.AltDirectorySeparatorChar);
|
||||
{$elseif defined(unix)}
|
||||
AssertEquals('\',TPath.AltDirectorySeparatorChar);
|
||||
{$else}
|
||||
AssertEquals('/',TPath.AltDirectorySeparatorChar);
|
||||
{$endif}
|
||||
|
Loading…
Reference in New Issue
Block a user