mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 06:49:23 +02:00
* Moved the tregistry2.pp test from packages to tests in order it to be run by daily test runs. tregistry2 has been failing for years and nobody has noticed this.
git-svn-id: trunk@48204 -
(cherry picked from commit a29bfe5505
)
# Conflicts:
# .gitattributes
# packages/fcl-registry/tests/testbasics.pp
This commit is contained in:
parent
e005d72307
commit
96710e3168
@ -21,7 +21,6 @@ type
|
|||||||
procedure TestSimpleWinRegistry;
|
procedure TestSimpleWinRegistry;
|
||||||
procedure TestDoubleWrite;
|
procedure TestDoubleWrite;
|
||||||
procedure bug16395;
|
procedure bug16395;
|
||||||
procedure TestAdv;
|
|
||||||
procedure TestStringList;
|
procedure TestStringList;
|
||||||
Procedure TestInt64;
|
Procedure TestInt64;
|
||||||
end;
|
end;
|
||||||
@ -29,11 +28,7 @@ type
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
registry
|
registry;
|
||||||
{$ifdef windows}
|
|
||||||
, tregistry2
|
|
||||||
{$endif windows}
|
|
||||||
;
|
|
||||||
|
|
||||||
{ TTestBasics }
|
{ TTestBasics }
|
||||||
|
|
||||||
@ -166,13 +161,6 @@ begin
|
|||||||
DeleteUserXmlFile;
|
DeleteUserXmlFile;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TTestBasics.TestAdv;
|
|
||||||
begin
|
|
||||||
{$ifdef windows}
|
|
||||||
DoRegTest2;
|
|
||||||
{$endif windows}
|
|
||||||
end;
|
|
||||||
|
|
||||||
Procedure TTestBasics.TestStringList;
|
Procedure TTestBasics.TestStringList;
|
||||||
|
|
||||||
Var
|
Var
|
||||||
|
@ -4,14 +4,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
{$ifdef FPC} {$mode delphi} {$endif}
|
{$ifdef FPC} {$mode delphi} {$endif}
|
||||||
unit tregistry2;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
procedure DoRegTest2;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
uses Windows, SysUtils, Classes, registry;
|
uses Windows, SysUtils, Classes, registry;
|
||||||
|
|
||||||
{$ifdef FPC}
|
{$ifdef FPC}
|
||||||
@ -24,7 +16,8 @@ const
|
|||||||
|
|
||||||
procedure TestFailed(ErrCode: integer);
|
procedure TestFailed(ErrCode: integer);
|
||||||
begin
|
begin
|
||||||
raise Exception.Create('Test FAILED. Error code: ' + IntToStr(ErrCode));
|
writeln('Test FAILED. Error code: ' + IntToStr(ErrCode));
|
||||||
|
Halt(ErrCode);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure ClearReg(const KeyName: string = '');
|
procedure ClearReg(const KeyName: string = '');
|
||||||
@ -212,5 +205,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
begin
|
||||||
|
DoRegTest2;
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user