mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 12:19:18 +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
|
var
|
||||||
C : Char;
|
C : Char;
|
||||||
begin
|
begin
|
||||||
FAltDirectorySeparatorChar:=#0;;
|
FAltDirectorySeparatorChar:=#0;
|
||||||
For C in AllowDirectorySeparators do
|
For C in AllowDirectorySeparators do
|
||||||
if (C<>System.DirectorySeparator) and (FAltDirectorySeparatorChar=#0) then
|
if (C<>System.DirectorySeparator) and (FAltDirectorySeparatorChar=#0) then
|
||||||
FAltDirectorySeparatorChar:=C;
|
FAltDirectorySeparatorChar:=C;
|
||||||
|
@ -1086,6 +1086,8 @@ procedure TTestTPath.TestAltDirectorySeparatorChar;
|
|||||||
begin
|
begin
|
||||||
{$ifdef Windows}
|
{$ifdef Windows}
|
||||||
AssertEquals('/',TPath.AltDirectorySeparatorChar);
|
AssertEquals('/',TPath.AltDirectorySeparatorChar);
|
||||||
|
{$elseif defined(unix)}
|
||||||
|
AssertEquals('\',TPath.AltDirectorySeparatorChar);
|
||||||
{$else}
|
{$else}
|
||||||
AssertEquals('/',TPath.AltDirectorySeparatorChar);
|
AssertEquals('/',TPath.AltDirectorySeparatorChar);
|
||||||
{$endif}
|
{$endif}
|
||||||
|
Loading…
Reference in New Issue
Block a user