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

t_id 898
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 16:09:00 22 2024/05/20 23:32:00 40
i386 19 38.0 2024/05/20 16:29:00 52 2024/05/20 23:31:00 27
m68k 1 2.0 2024/05/20 22:44:00 190 2024/05/20 22:44:00 190
sparc 4 8.0 2024/05/20 23:27:00 38 2024/05/20 23:32:00 40
powerpc 1 2.0 2024/05/20 23:05:00 185 2024/05/20 23:05:00 185
arm 1 2.0 2024/05/20 22:30:00 59 2024/05/20 22:30:00 59
x86_64 8 16.0 2024/05/20 16:09:00 22 2024/05/20 19:35:00 26
powerpc64 2 4.0 2024/05/20 23:13:00 213 2024/05/20 23:20:00 71
mips 1 2.0 2024/05/20 22:51:00 240 2024/05/20 22:51:00 240
mipsel 1 2.0 2024/05/20 22:58:00 148 2024/05/20 22:58:00 148
aarch64 12 24.0 2024/05/20 16:27:00 32 2024/05/20 22:24:00 44
linux 11 22.0 2024/05/20 22:24:00 44 2024/05/20 23:30:00 79
solaris 20 40.0 2024/05/20 16:29:00 52 2024/05/20 23:32:00 40
darwin 11 22.0 2024/05/20 16:27:00 32 2024/05/20 17:50:00 56
win64 8 16.0 2024/05/20 16:09:00 22 2024/05/20 19:35:00 26
3.3.1 13 26.0 2024/05/20 16:09:00 22 2024/05/20 23:32:00 40
3.2.2 11 22.0 2024/05/20 16:29:00 52 2024/05/20 17:30:00 45
3.2.3 26 52.0 2024/05/20 16:13:00 26 2024/05/20 23:30:00 79

Source:

{ Source provided for Free Pascal Bug Report 2046 }
{ Submitted by "Mattias Gaertner" on  2002-07-17 }
{ e-mail: nc-gaertnma@netcologne.de }

{ modified to check that passing array of const
  from functions to functions works correctly PM }

program printftest;

{$mode objfpc}{$H+}

uses
  sysutils;


procedure sprintf(var a : string; const fm: string; args: array of const);
begin
  a:=Format (fm,args);
end;

procedure sprintf2(var a : string; const fm: string; args: array of const);
begin
  FmtStr (a,fm,args);
end;

procedure print(args: array of const);
var
  a : string;
begin
  sprintf(a,'a number %D-%D%S',args);
  writeln(a);
  if a<>'a number 3333-45 test string' then
   begin
     writeln('Error!');
     halt(1);
   end;
  sprintf2(a,'a number %D-%D%S',args);
  writeln(a);
  if a<>'a number 3333-45 test string' then
   begin
     writeln('Error!');
     halt(1);
   end;
end;

var
  a : string;
begin
  a:=format('a number %D',[12345]);
  writeln(a);
  if a<>'a number 12345' then
   begin
     writeln('Error!');
     halt(1);
   end;
  print([3333,45,' test string']);
end.

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