mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 08:22:49 +02:00
* write additional info for the tests, might help to identify spurious failures
This commit is contained in:
parent
078e2eabf9
commit
c48d8e9708
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user