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

t_id 799
t_adddate 2003/10/03
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/10/19 08:15:00 27 2024/10/19 13:36:00 24
i386 3 6.0 2024/10/19 09:40:00 209 2024/10/19 11:13:00 63
sparc 3 6.0 2024/10/19 09:01:00 54 2024/10/19 11:16:00 40
powerpc 7 14.0 2024/10/19 08:35:00 146 2024/10/19 13:26:00 65
arm 2 4.0 2024/10/19 09:36:00 32 2024/10/19 10:03:00 32
x86_64 8 16.0 2024/10/19 10:50:00 30 2024/10/19 13:36:00 24
powerpc64 8 16.0 2024/10/19 08:43:00 65 2024/10/19 11:23:00 69
mips 3 6.0 2024/10/19 08:18:00 121 2024/10/19 10:28:00 38
mipsel 3 6.0 2024/10/19 08:27:00 188 2024/10/19 10:35:00 142
aarch64 6 12.0 2024/10/19 08:15:00 27 2024/10/19 09:57:00 26
sparc64 3 6.0 2024/10/19 09:25:00 118 2024/10/19 11:33:00 117
riscv64 2 4.0 2024/10/19 10:25:00 33 2024/10/19 11:10:00 26
loongarch64 2 4.0 2024/10/19 09:45:00 25 2024/10/19 10:17:00 30
linux 36 72.0 2024/10/19 08:15:00 27 2024/10/19 11:38:00 25
go32v2 1 2.0 2024/10/19 11:13:00 63 2024/10/19 11:13:00 63
solaris 6 12.0 2024/10/19 13:26:00 25 2024/10/19 13:36:00 24
aix 7 14.0 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
3.3.1 28 56.0 2024/10/19 09:32:00 28 2024/10/19 13:26:00 65
3.2.3 22 44.0 2024/10/19 08:15:00 27 2024/10/19 13:36:00 24

Source:

program tw1331;

{$mode objfpc}

uses Classes, SysUtils, TypInfo, uw1331;

type
  DummyEnum1 = (tr1,tr2);
  DummyEnum2 = tr1..tr2;

  DummyClass = class(TPersistent)
  private
    FMyDummyEnum1:DummyEnum1;
    FMyDummyEnum2:DummyEnum2;
    FMyDummyEnum3:DummyEnum3;
    FMyDummyEnum4:DummyEnum4;
  published
    property MyDummyEnum1:DummyEnum1 read FMyDummyEnum1 write FMyDummyEnum1;
    property MyDummyEnum2:DummyEnum2 read FMyDummyEnum2 write FMyDummyEnum2;
    property MyDummyEnum3:DummyEnum3 read FMyDummyEnum3 write FMyDummyEnum3;
    property MyDummyEnum4:DummyEnum4 read FMyDummyEnum4 write FMyDummyEnum4;
  end;

var Dummy1:DummyClass;
    List:PPropList;
    Count,Index,I:integer;
    EnumType:PTypeInfo;

begin
  // create a dummyclass instance
  Dummy1:=DummyClass.Create;
  // get property list
  Count:=GetTypeData(DummyClass.ClassInfo)^.Propcount;
  GetMem(List,Count * SizeOf(Pointer));
  GetPropInfos(DummyClass.ClassInfo,List);
  Index:=Count-1;
  while (Index>=0) do begin
    EnumType:=List^[Index]^.PropType;
    if EnumType^.Kind=tkEnumeration then begin
      // print all enumeration types
      writeln('PropertyName=',EnumType^.Name);
      with GetTypeData(EnumType)^ do
        // write all possible values for this type
        for I := MinValue to MaxValue do
          writeln(I,': ''',GetEnumName(EnumType, I),'''');
    end;
    dec(Index);
  end;
  FreeMem(List);
  Dummy1.Free;
end.

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