* write additional info for the tests, might help to identify spurious failures

This commit is contained in:
florian 2024-11-17 14:20:20 +01:00
parent 078e2eabf9
commit c48d8e9708
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,8 @@
{$ifdef linux}
uses
baseunix;
{$endif linux}
{$ifdef CPUAVR}
{ avr does not support an exitproc }
begin
@ -60,7 +65,18 @@ begin
exitproc:=saveexit;
end;
{$ifdef linux}
var
limits : TRLimit;
{$endif linux}
begin
{$ifdef linux}
FpGetRLimit(RLIMIT_STACK, @limits);
writeln('Cur: ',limits.rlim_cur);
writeln('Max: ',limits.rlim_max);
writeln('StackLength: ',StackLength);
{$endif linux}
saveexit:=exitproc;
exitproc:=@stack_check_exit;
x:=inf_rec(5000);

View File

@ -17,8 +17,17 @@ end;
var
Form1 : TForm1;
{$ifdef linux}
limits : TRLimit;
{$endif linux}
begin
{$ifdef linux}
FpGetRLimit(RLIMIT_STACK, @limits);
writeln('Cur: ',limits.rlim_cur);
writeln('Max: ',limits.rlim_max);
writeln('StackLength: ',StackLength);
{$endif linux}
Form1:=TForm1.Create;
Form1.Button1Click(nil);
end.