patch 9.1.1519: tests: Test_termdebug_decimal_breakpoints() may fail

Problem:  Test_termdebug_decimal_breakpoints() fails with List index out
          of range, because when adding the second breakpoint, the
          cursor is still on the very first line (a header include line)
          and therefore gdb refuses to set the breakpoint with:
          `msg="No compiled code for line 1 in file XTD_decimal.c"`
Solution: Run the program, so that it will break at the very first
          defined breakpoint and then once we are in the program,
          set further breakpoints

closes: #17689

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-07-07 19:38:27 +02:00
parent 57d6d00433
commit faed074ab7
2 changed files with 4 additions and 0 deletions

View File

@ -200,6 +200,8 @@ func Test_termdebug_decimal_breakpoints()
Break 9 Break 9
call term_wait(gdb_buf) call term_wait(gdb_buf)
redraw! redraw!
Run
call term_wait(gdb_buf, 400)
let i = 2 let i = 2
while i <= 258 while i <= 258

View File

@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1519,
/**/ /**/
1518, 1518,
/**/ /**/