mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 09:30:35 +02:00
* Changed the registry test. TRegistry.DeleteKey must delete all sub-keys. It is Delphi compatible despite the incorrect statement in the online Delphi docs.
git-svn-id: trunk@48378 -
This commit is contained in:
parent
25e2f29e01
commit
e84fbcedac
@ -266,7 +266,7 @@ begin
|
|||||||
AssertTrue(format('OpenKey(''%s'') failed.',[Base]),B);
|
AssertTrue(format('OpenKey(''%s'') failed.',[Base]),B);
|
||||||
|
|
||||||
B := R.DeleteKey('One');
|
B := R.DeleteKey('One');
|
||||||
AssertFalse(format('DeleteKey(''%s'') should have failed, but it succeeded.',[OneFull]),B);
|
AssertTrue(format('DeleteKey(''%s'') should have succeeded, but it failed.',[OneFull]),B);
|
||||||
finally
|
finally
|
||||||
R.Free;
|
R.Free;
|
||||||
CleanUp(ExceptObject <> nil);
|
CleanUp(ExceptObject <> nil);
|
||||||
|
Loading…
Reference in New Issue
Block a user