Test suite results for test file test/tclass7.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 "test/tclass7.pp" information:

t_id 20
t_adddate 2003/10/03
t_result 0
t_knownrunerror 2

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 05:08:00 158 2024/05/21 07:59:00 246
i386 4 8.0 2024/05/21 06:26:00 59 2024/05/21 07:25:00 42
m68k 3 6.0 2024/05/21 06:59:00 58 2024/05/21 07:39:00 58
sparc 4 8.0 2024/05/21 06:46:00 68 2024/05/21 07:52:00 74
powerpc 9 18.0 2024/05/21 06:31:00 184 2024/05/21 07:59:00 246
arm 3 6.0 2024/05/21 06:43:00 210 2024/05/21 07:18:00 40
x86_64 2 4.0 2024/05/21 06:12:00 30 2024/05/21 06:21:00 29
powerpc64 5 10.0 2024/05/21 05:53:00 132 2024/05/21 07:32:00 77
mips 3 6.0 2024/05/21 07:08:00 154 2024/05/21 07:46:00 54
mipsel 3 6.0 2024/05/21 06:07:00 151 2024/05/21 07:17:00 228
aarch64 8 16.0 2024/05/21 06:35:00 23 2024/05/21 07:39:00 37
sparc64 3 6.0 2024/05/21 05:08:00 158 2024/05/21 07:17:00 165
riscv64 1 2.0 2024/05/21 07:46:00 31 2024/05/21 07:46:00 31
loongarch64 2 4.0 2024/05/21 07:01:00 34 2024/05/21 07:33:00 38
linux 43 86.0 2024/05/21 05:08:00 158 2024/05/21 07:59:00 246
go32v2 1 2.0 2024/05/21 06:26:00 59 2024/05/21 06:26:00 59
solaris 2 4.0 2024/05/21 06:12:00 30 2024/05/21 06:21:00 29
darwin 4 8.0 2024/05/21 06:35:00 23 2024/05/21 07:04:00 38
3.3.1 29 58.0 2024/05/21 05:08:00 158 2024/05/21 07:59:00 246
3.2.3 21 42.0 2024/05/21 06:07:00 151 2024/05/21 07:50:00 62

Source:

{ %KNOWNRUNERROR=2 v1.0 does not support class DefaultHandler message }
{$ifdef fpc}
 {$mode delphi}
{$endif}

type
 tClassA=class
  procedure DefaultHandler(var Message);override;
 end;

 tClassB=class(tClassA)
  procedure test(var m);message 1;
 end;

 tClassC=class(tClassB)
  procedure test00(var m);message 1;
 end;

var
  counter : longint;

procedure tClassA.DefaultHandler(var Message);
 begin
  writeln('DDDDDDDDDD');
  inc(counter);
 end;

procedure tClassB.test(var m);
 begin
  writeln('BBBBBBBBBB');
  inc(counter);
  inherited;
 end;

procedure tClassC.test00(var m);
 begin
  writeln('CCCCCCCCCC');
  inc(counter);
  inherited;
 end;

var
 C:tObject;
 One:longint;
begin
 One:=1;
 C:=tClassC.Create;
 C.Dispatch(One);
 C.Destroy;
 if counter<>3 then
  begin
    writeln('Error in class DefaultHandler for messages!');
{$ifdef VER1_0}
    halt(2);
{$else not VER1_0}
    halt(1);
{$endif not VER1_0}
  end;
end.

Link to SVN view of test/tclass7.pp source.