Browse Source

Add missing CallerAddr

Martin 2 months ago
parent
commit
cd661989a5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/fcl-fpcunit/src/fpcunit.pp

+ 3 - 3
packages/fcl-fpcunit/src/fpcunit.pp

@@ -909,7 +909,7 @@ end;
 
 
 class procedure TAssert.AssertNotSame(Expected, Actual: TObject);
 class procedure TAssert.AssertNotSame(Expected, Actual: TObject);
 begin
 begin
-  AssertFalse(SExpectedNotSame, Expected = Actual);
+  AssertFalse(SExpectedNotSame, Expected = Actual,CallerAddr);
 end;
 end;
 
 
 
 
@@ -1063,7 +1063,7 @@ begin
   Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
   Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
   if aMessage<>'' then
   if aMessage<>'' then
     Msg:=aMessage+': '+Msg;
     Msg:=aMessage+': '+Msg;
-  AssertTrue(Msg,aClass='');
+  AssertTrue(Msg,aClass='',CallerAddr);
 end;
 end;
 
 
 class procedure TAssert.AssertNoException(AMethod: TRunMethod);
 class procedure TAssert.AssertNoException(AMethod: TRunMethod);
@@ -1135,7 +1135,7 @@ begin
   Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
   Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
   if aMessage<>'' then
   if aMessage<>'' then
     Msg:=aMessage+': '+Msg;
     Msg:=aMessage+': '+Msg;
-  AssertTrue(Msg,aClass='');
+  AssertTrue(Msg,aClass='',CallerAddr);
 end;
 end;
 
 
 class procedure TAssert.AssertNoException(AMethod: TRunLocalMethod);
 class procedure TAssert.AssertNoException(AMethod: TRunLocalMethod);