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

t_id 29
t_version 1.1
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/05/20 23:33:00 38 2024/05/21 01:32:00 28
i386 33 66.0 2024/05/21 00:08:00 23 2024/05/21 01:32:00 28
sparc 5 10.0 2024/05/20 23:33:00 38 2024/05/20 23:55:00 41
x86_64 7 14.0 2024/05/20 23:44:00 14 2024/05/21 01:25:00 26
powerpc64 2 4.0 2024/05/21 01:10:00 101 2024/05/21 01:11:00 108
aarch64 3 6.0 2024/05/21 00:12:00 32 2024/05/21 01:29:00 35
linux 45 90.0 2024/05/20 23:44:00 14 2024/05/21 01:32:00 28
solaris 5 10.0 2024/05/20 23:33:00 38 2024/05/20 23:55:00 41
3.3.1 30 60.0 2024/05/20 23:37:00 42 2024/05/21 01:32:00 28
3.2.3 20 40.0 2024/05/20 23:33:00 38 2024/05/21 01:30:00 34

Source:

{ %VERSION=1.1 }
program testv5;

uses variants,varutils;

Procedure TestLongInt(I : Longint);

Var 
  V : Variant;
  B : Boolean;
  
begin
  Write('Longint to boolean assignment: ');
  V:=I;
  B:=V;
  Writeln(I,' -> ',B);
end;

Procedure TestSmallInt(I : SmallInt);

Var 
  V : Variant;
  B : Boolean;
  
begin
  Write('Smallint to boolean assignment: ');
  V:=I;
  B:=V;
  Writeln(I,' -> ',B);
end;

Procedure TestShortInt(I : ShortInt);

Var 
  V : Variant;
  B : Boolean;

begin
  Write('Shortint to boolean assignment: ');
  V:=I;
  B:=V;
  Writeln(I,' -> ',B);
end;

Procedure TestCardinal(I : Cardinal);

Var 
  V : Variant;
  B : Boolean;

begin
  Write('Cardinal to boolean assignment: ');
  V:=I;
  B:=V;
  Writeln(I,' -> ',B);
end;

Procedure TestWord(I : Word);

Var 
  V : Variant;
  B : Boolean;

begin
  Write('Word to boolean assignment: ');
  V:=I;
  B:=V;
  Writeln(I,' -> ',B);
end;

Procedure TestByte(I : Byte);

Var 
  V : Variant;
  B : Boolean;

begin
  Write('Byte to boolean assignment: ');
  V:=I;
  B:=V;
  Writeln(I,' -> ',B);
end;

// 64 bit values

Procedure TestInt64(I : Int64);

Var 
  V : Variant;
  B : Boolean;

begin
  Write('Int64 to boolean assignment: ');
  V:=I;
  B:=V;
  Writeln(I,' -> ',B);
end;


Procedure TestQWord(I : QWord);

Var 
  V : Variant;
  B : Boolean;

begin
  Write('QWord to boolean assignment: ');
  V:=I;
  B:=V;
  Writeln(I,' -> ',B);
end;

begin
  TestLongint(0);
  TestSmallInt(0);
  TestShortInt(0);
  TestCardinal(0);
  TestWord(0);
  TestByte(0);
  TestInt64(0);  
  TestQWord(0);
  TestLongint(-1);
  TestSmallInt(-1);
  TestShortInt(-1);
  TestCardinal(-1);
  TestWord(-1);
  TestByte(-1);
  TestInt64(-1);  
  TestQWord(-1);
  TestLongint(1);
  TestSmallInt(1);
  TestShortInt(1);
  TestCardinal(1);
  TestWord(1);
  TestByte(1);
  TestInt64(1);  
  TestQWord(1);
end.

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