mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-18 12:19:13 +02:00
FpDebug: tests, increase timeout
This commit is contained in:
parent
acfb46b466
commit
81b8660cb1
@ -959,7 +959,7 @@ begin
|
||||
for j := 1 to 70 do begin
|
||||
for i := 0 to 9 do begin
|
||||
|
||||
Debugger.RunToNextPause(dcRun, 30000);
|
||||
Debugger.RunToNextPause(dcRun, 90000);
|
||||
AssertDebuggerState(dsPause, 'in loop');
|
||||
TestEquals('ThreadId', ThreadIdMain, dbg.Threads.CurrentThreads.CurrentThreadId);
|
||||
TestLocation('loop '+IntToStr(j)+', '+IntToStr(i), 'BrkMain'+IntToStr(i), j);
|
||||
|
@ -279,7 +279,7 @@ begin
|
||||
|
||||
// This test can take longer, as the new thread gets very little scheduler time
|
||||
// during the single stepping of the main thread.
|
||||
RunToNextPauseNoLoopBreak('', dcStepOver, 35000);
|
||||
RunToNextPauseNoLoopBreak('', dcStepOver, 55000);
|
||||
AssertDebuggerState(dsPause);
|
||||
TestLocation('At AfterThreadCreateInStep', 'AfterThreadCreateInStep', -1);
|
||||
TestEquals('ThreadId AfterThreadCreateInStep', ThreadIdMain, dbg.Threads.CurrentThreads.CurrentThreadId);
|
||||
@ -1162,7 +1162,7 @@ begin
|
||||
if AnExpAtBrkName <> '' then
|
||||
AName := AName + ' (TO: '+AnExpAtBrkName+')';
|
||||
THookedFpDebugDebugger(dbg).LockRelCount := 0;
|
||||
Result := RunToNextPauseNoInternal(AName, ACmd);
|
||||
Result := RunToNextPauseNoInternal(AName, ACmd, ATimeOut);
|
||||
|
||||
// LockRelease called in 2 * DoState / 1 * DebugLoopFinished
|
||||
if not TestEquals(AName + ' ' + dbgs(ACmd)+' - lock cnt', 3, THookedFpDebugDebugger(dbg).LockRelCount)
|
||||
|
@ -102,8 +102,8 @@ type
|
||||
Procedure TestCompile(const Prg: TCommonSource; out ExeName: string; const UsesDirs: array of TUsesDir;
|
||||
NamePostFix: String=''; ExtraArgs: String=''); overload;
|
||||
|
||||
function RunToNextPauseTestInternal(AName: String; AnInternalCntExp: Integer; ACmd: TDBGCommand; ATimeOut: Integer = 5000; AWaitForInternal: Boolean = False): Boolean;
|
||||
function RunToNextPauseNoInternal(AName: String; ACmd: TDBGCommand; ATimeOut: Integer = 5000; AWaitForInternal: Boolean = False): Boolean;
|
||||
function RunToNextPauseTestInternal(AName: String; AnInternalCntExp: Integer; ACmd: TDBGCommand; ATimeOut: Integer = 15000; AWaitForInternal: Boolean = False): Boolean;
|
||||
function RunToNextPauseNoInternal(AName: String; ACmd: TDBGCommand; ATimeOut: Integer = 15000; AWaitForInternal: Boolean = False): Boolean;
|
||||
|
||||
// Logging
|
||||
procedure LogText(const s: string; CopyToTestLogger: Boolean = False);
|
||||
|
@ -119,8 +119,8 @@ type
|
||||
function StartDebugger(AppDir, TestExeName: String): boolean; virtual;
|
||||
procedure FreeDebugger;
|
||||
procedure ClearDbgStateCounts;
|
||||
function RunToNextPause(ACmd: TDBGCommand; ATimeOut: Integer = 5000; AWaitForInternal: Boolean = False): Boolean;
|
||||
function WaitForFinishRun(ATimeOut: Integer = 5000; AWaitForInternal: Boolean = False): Boolean;
|
||||
function RunToNextPause(ACmd: TDBGCommand; ATimeOut: Integer = 15000; AWaitForInternal: Boolean = False): Boolean;
|
||||
function WaitForFinishRun(ATimeOut: Integer = 15000; AWaitForInternal: Boolean = False): Boolean;
|
||||
|
||||
function SetBreakPoint(AFileName: String; ALine: Integer): TDBGBreakPoint;
|
||||
function SetBreakPoint(ACommonSource: TCommonSource; AName: String): TDBGBreakPoint;
|
||||
|
Loading…
Reference in New Issue
Block a user