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

t_id 1318
t_adddate 2004/07/10
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=40 Percentage= 80.00

Skipped=4 Percentage= 8.00

Result type Cat. Count Percentage First date Last Date
Failed to run 6 12.0 2024/10/19 08:27:00 188 2024/10/19 10:35:00 142
i386 2 33.3 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
powerpc 2 33.3 2024/10/19 08:35:00 146 2024/10/19 10:03:00 203
mipsel 2 33.3 2024/10/19 08:27:00 188 2024/10/19 10:35:00 142
linux 6 100.0 2024/10/19 08:27:00 188 2024/10/19 10:35:00 142
3.3.1 4 66.7 2024/10/19 09:40:00 209 2024/10/19 10:35:00 142
3.2.3 2 33.3 2024/10/19 08:27:00 188 2024/10/19 08:35:00 146
Successfully run 40 80.0 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24
m68k 3 7.5 2024/10/19 07:29:00 50 2024/10/19 10:22:00 40
sparc 3 7.5 2024/10/19 08:05:00 45 2024/10/19 11:16:00 40
powerpc 3 7.5 2024/10/19 08:40:00 51 2024/10/19 12:23:00 62
arm 1 2.5 2024/10/19 09:36:00 32 2024/10/19 09:36:00 32
x86_64 10 25.0 2024/10/19 08:27:00 30 2024/10/19 13:36:00 24
powerpc64 5 12.5 2024/10/19 08:51:00 46 2024/10/19 10:59:00 68
mips 3 7.5 2024/10/19 08:18:00 121 2024/10/19 10:28:00 38
aarch64 6 15.0 2024/10/19 08:15:00 27 2024/10/19 09:57:00 26
sparc64 2 5.0 2024/10/19 08:33:00 120 2024/10/19 09:25:00 118
riscv64 2 5.0 2024/10/19 10:25:00 33 2024/10/19 11:10:00 26
loongarch64 2 5.0 2024/10/19 09:45:00 25 2024/10/19 10:17:00 30
linux 30 75.0 2024/10/19 07:29:00 50 2024/10/19 11:38:00 25
solaris 6 15.0 2024/10/19 13:22:00 24 2024/10/19 13:36:00 24
aix 4 10.0 2024/10/19 08:40:00 51 2024/10/19 12:23:00 62
3.3.1 19 47.5 2024/10/19 08:05:00 45 2024/10/19 12:23:00 62
3.2.3 21 52.5 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24
Skipping test because for other target 4 8.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
i386 4 100.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
go32v2 4 100.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
3.3.1 4 100.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63

Source:

{ %target=linux,freebsd }

{$mode objfpc}
program testr;

uses sysutils;
function sprintf(buf,fmt : pchar) : longint; varargs;cdecl; external 'c';
function cosh(f : double) : double; cdecl; external 'm';
function ccos(f : double) : double; cdecl; external 'm' name 'cos';

Type
  TTest = Class(TObject)
    Constructor Create(Max : Integer);
  end; 

Constructor TTest.Create(Max : Integer);

Var
  I,J : integer;
  F : single;
  buf : ansistring;
  
begin
  For I:=1 to Max do
    begin
    F:=ccos(I/180*pi);
    setlength(buf,100);
    setlength(buf,sprintf(pchar(buf),'%d: f: %f and round f*10: ',i,f));
    f:=f*10.0;
    f:=cosh(f);
    writeln(buf,round(F));
    f:=cosh(f);
    end;
end;

procedure DoTest;

begin
  With TTest.Create(720) do
    Free;
end;

begin
  DoTest;    
end.

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