Test suite results for test file webtbs/tw3214.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "webtbs/tw3214.pp" information:

t_id 1321
t_adddate 2004/07/17
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Successfully run 50 100.0 2024/05/21 01:40:00 15 2024/05/21 05:38:00 35
i386 7 14.0 2024/05/21 01:52:00 47 2024/05/21 05:38:00 44
m68k 1 2.0 2024/05/21 04:00:00 53 2024/05/21 04:00:00 53
sparc 1 2.0 2024/05/21 04:50:00 56 2024/05/21 04:50:00 56
powerpc 1 2.0 2024/05/21 04:15:00 238 2024/05/21 04:15:00 238
x86_64 23 46.0 2024/05/21 01:40:00 15 2024/05/21 05:38:00 35
powerpc64 12 24.0 2024/05/21 04:20:00 53 2024/05/21 05:35:00 105
mipsel 1 2.0 2024/05/21 04:11:00 185 2024/05/21 04:11:00 185
aarch64 3 6.0 2024/05/21 03:47:00 31 2024/05/21 04:37:00 35
riscv64 1 2.0 2024/05/21 04:44:00 30 2024/05/21 04:44:00 30
linux 40 80.0 2024/05/21 01:40:00 15 2024/05/21 05:38:00 35
win32 1 2.0 2024/05/21 04:53:00 28 2024/05/21 04:53:00 28
go32v2 2 4.0 2024/05/21 04:13:00 54 2024/05/21 04:56:00 56
solaris 7 14.0 2024/05/21 03:16:00 19 2024/05/21 03:35:00 27
3.3.1 31 62.0 2024/05/21 01:40:00 15 2024/05/21 05:35:00 105
3.2.3 19 38.0 2024/05/21 01:52:00 47 2024/05/21 05:38:00 35

Source:

{$mode objfpc}{$H+}{$r+}

uses
  Classes, SysUtils; 

type
  TMyEvent = class(TObject)
  public
    procedure SaveToStream(aStream: TStream); virtual; abstract;
  end;

  TMyClass = class
  private
    function GetEvent(aIndex: integer): TMyEvent;
    function GetEventCount: integer;
  public
    property EventCount: integer read GetEventCount;
    property Events[aIndex: integer]: TMyEvent read GetEvent;
    procedure SaveToStream(aDest: TStream);
  end;

{ TMyClass }

function TMyClass.GetEvent(aIndex: integer): TMyEvent;
begin
  Result:=nil;
end;

function TMyClass.GetEventCount: integer;
begin
  Result:=0;
end;

procedure TMyClass.SaveToStream(aDest: TStream);
var
  cEvent: Integer;
  eCnt: Integer;
begin
  eCnt:=EventCount;
  aDest.Write(eCnt, sizeof(eCnt));
  for cEvent := 0 to eCnt -1 do
    Events[cEvent].SaveToStream(aDest);
end;

begin
end.

Link to SVN view of webtbs/tw3214.pp source.