mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 12:49:20 +02:00
Add missing CallerAddr
This commit is contained in:
parent
88d57454a0
commit
cd661989a5
@ -909,7 +909,7 @@ end;
|
||||
|
||||
class procedure TAssert.AssertNotSame(Expected, Actual: TObject);
|
||||
begin
|
||||
AssertFalse(SExpectedNotSame, Expected = Actual);
|
||||
AssertFalse(SExpectedNotSame, Expected = Actual,CallerAddr);
|
||||
end;
|
||||
|
||||
|
||||
@ -1063,7 +1063,7 @@ begin
|
||||
Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
|
||||
if aMessage<>'' then
|
||||
Msg:=aMessage+': '+Msg;
|
||||
AssertTrue(Msg,aClass='');
|
||||
AssertTrue(Msg,aClass='',CallerAddr);
|
||||
end;
|
||||
|
||||
class procedure TAssert.AssertNoException(AMethod: TRunMethod);
|
||||
@ -1135,7 +1135,7 @@ begin
|
||||
Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
|
||||
if aMessage<>'' then
|
||||
Msg:=aMessage+': '+Msg;
|
||||
AssertTrue(Msg,aClass='');
|
||||
AssertTrue(Msg,aClass='',CallerAddr);
|
||||
end;
|
||||
|
||||
class procedure TAssert.AssertNoException(AMethod: TRunLocalMethod);
|
||||
|
Loading…
Reference in New Issue
Block a user