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=46 Percentage= 92.00

Skipped=1 Percentage= 2.00

Result type Cat. Count Percentage First date Last Date
Failed to run 3 6.0 2024/05/17 11:21:00 241 2024/05/17 11:34:00 242
powerpc 1 33.3 2024/05/17 11:30:00 242 2024/05/17 11:30:00 242
powerpc64 1 33.3 2024/05/17 11:34:00 242 2024/05/17 11:34:00 242
mips 1 33.3 2024/05/17 11:21:00 241 2024/05/17 11:21:00 241
linux 3 100.0 2024/05/17 11:21:00 241 2024/05/17 11:34:00 242
3.3.1 3 100.0 2024/05/17 11:21:00 241 2024/05/17 11:34:00 242
Successfully run 46 92.0 2024/05/17 11:04:00 38 2024/05/17 12:48:00 22
i386 10 21.7 2024/05/17 11:29:00 44 2024/05/17 12:24:00 45
sparc 1 2.2 2024/05/17 12:01:00 74 2024/05/17 12:01:00 74
x86_64 27 58.7 2024/05/17 11:10:00 26 2024/05/17 12:48:00 22
powerpc64 1 2.2 2024/05/17 11:39:00 59 2024/05/17 11:39:00 59
mipsel 1 2.2 2024/05/17 11:26:00 47 2024/05/17 11:26:00 47
aarch64 4 8.7 2024/05/17 11:04:00 38 2024/05/17 12:15:00 38
sparc64 1 2.2 2024/05/17 12:19:00 173 2024/05/17 12:19:00 173
riscv64 1 2.2 2024/05/17 11:56:00 31 2024/05/17 11:56:00 31
linux 36 78.3 2024/05/17 11:04:00 38 2024/05/17 12:48:00 22
solaris 10 21.7 2024/05/17 11:29:00 44 2024/05/17 12:24:00 45
3.3.1 15 32.6 2024/05/17 11:10:00 26 2024/05/17 12:48:00 22
3.2.2 10 21.7 2024/05/17 11:29:00 44 2024/05/17 12:24:00 45
3.2.3 21 45.7 2024/05/17 11:04:00 38 2024/05/17 12:36:00 36
Skipping test because for other target 1 2.0 2024/05/17 13:34:00 47 2024/05/17 13:34:00 47
x86_64 1 100.0 2024/05/17 13:34:00 47 2024/05/17 13:34:00 47
win64 1 100.0 2024/05/17 13:34:00 47 2024/05/17 13:34:00 47
3.3.1 1 100.0 2024/05/17 13:34:00 47 2024/05/17 13:34:00 47

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.