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

t_id 84
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=43 Percentage= 86.00

Result type Cat. Count Percentage First date Last Date
Failed to run 7 14.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
wasm32 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
wasi 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
3.3.1 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
Successfully run 43 86.0 2024/09/26 18:42:00 90 2024/09/26 23:02:00 44
i386 4 9.3 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
powerpc 14 32.6 2024/09/26 19:41:00 35 2024/09/26 23:02:00 44
powerpc64 17 39.5 2024/09/26 18:42:00 90 2024/09/26 22:29:00 103
riscv64 8 18.6 2024/09/26 19:14:00 123 2024/09/26 19:59:00 123
linux 39 90.7 2024/09/26 18:42:00 90 2024/09/26 23:02:00 44
go32v2 4 9.3 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
3.3.1 27 62.8 2024/09/26 18:42:00 90 2024/09/26 22:38:00 79
3.2.3 16 37.2 2024/09/26 21:17:00 71 2024/09/26 23:02:00 44

Source:

{$S+}

{ Program to check that an infinite recursion
  does generate a RTE ... }

{$R-}
{ make that recursion really infinite 
  needs that range check is disabled }

const 
  level : longint = 0;

function inf_rec(x : longint) : longint;

begin
  inc(level);
  inf_rec:=x+inf_rec(x-1);
end;


const
  saveexit : pointer = nil;
  x : longint = 0;

procedure stack_check_exit;

begin
  exitproc:=saveexit;
  if errorcode<>0 then
    begin
      Writeln('An error occured at level ',level);
      if errorcode=202 then
        begin
          Writeln('Stack overflow correctly handled');
          erroraddr:=nil;
          errorcode:=0;
          exitcode:=0;
        end
      else if errorcode=216 then
        begin
          Writeln('RTL returns an RTE 216 on stack overflow');
          Writeln('Not perfect, but acceptable');
          erroraddr:=nil;
          errorcode:=0;
          exitcode:=0;
        end;
    end
  else
    begin
      exitcode:=1;
      errorcode:=1;
    end;
  exitproc:=saveexit;
end;

begin
  saveexit:=exitproc;
  exitproc:=@stack_check_exit;
  x:=inf_rec(5000);
end. 

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