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=49 Percentage= 98.00

Result type Cat. Count Percentage First date Last Date
Failed to run 1 2.0 2024/05/20 11:36:00 40 2024/05/20 11:36:00 40
aarch64 1 100.0 2024/05/20 11:36:00 40 2024/05/20 11:36:00 40
linux 1 100.0 2024/05/20 11:36:00 40 2024/05/20 11:36:00 40
3.2.3 1 100.0 2024/05/20 11:36:00 40 2024/05/20 11:36:00 40
Successfully run 49 98.0 2024/05/20 10:48:00 38 2024/05/20 22:58:00 148
i386 13 26.5 2024/05/20 16:23:00 44 2024/05/20 22:37:00 176
m68k 1 2.0 2024/05/20 22:44:00 190 2024/05/20 22:44:00 190
arm 1 2.0 2024/05/20 22:30:00 59 2024/05/20 22:30:00 59
x86_64 13 26.5 2024/05/20 13:38:00 23 2024/05/20 19:35:00 26
mips 3 6.1 2024/05/20 12:35:00 35 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 17 34.7 2024/05/20 10:48:00 38 2024/05/20 22:24:00 44
linux 12 24.5 2024/05/20 10:48:00 38 2024/05/20 22:58:00 148
solaris 12 24.5 2024/05/20 16:23:00 44 2024/05/20 17:30:00 45
darwin 12 24.5 2024/05/20 16:20:00 32 2024/05/20 17:50:00 56
win64 13 26.5 2024/05/20 13:38:00 23 2024/05/20 19:35:00 26
3.3.1 8 16.3 2024/05/20 12:35:00 35 2024/05/20 19:35:00 26
3.2.2 12 24.5 2024/05/20 16:23:00 44 2024/05/20 17:30:00 45
3.2.3 29 59.2 2024/05/20 10:48:00 38 2024/05/20 22:58:00 148

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.