Browse Source

* fix test run in Delphi: TypeInfo(Integer) is indeed for "Integer" in Delphi, not "LongInt" as in FPC

git-svn-id: trunk@36902 -
svenbarth 8 years ago
parent
commit
251d223f29
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/rtl-objpas/tests/tests.rtti.pas

+ 4 - 0
packages/rtl-objpas/tests/tests.rtti.pas

@@ -695,7 +695,11 @@ begin
   LContext := TRttiContext.Create;
   LContext := TRttiContext.Create;
 
 
   LType := LContext.GetType(TypeInfo(integer));
   LType := LContext.GetType(TypeInfo(integer));
+{$ifdef fpc}
   CheckEquals(LType.Name, 'LongInt');
   CheckEquals(LType.Name, 'LongInt');
+{$else}
+  CheckEquals(LType.Name, 'Integer');
+{$endif}
 
 
   LContext.Free;
   LContext.Free;
 end;
 end;