patch 9.1.1519: tests: Test_termdebug_decimal_breakpoints() may fail

Commit: 
https://github.com/vim/vim/commit/faed074ab7dee8d1c89978090a674008c50f65d8
Author: Christian Brabandt <c...@256bit.org>
Date:   Mon Jul 7 19:38:27 2025 +0200

    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 <c...@256bit.org>

diff --git a/src/testdir/test_plugin_termdebug.vim 
b/src/testdir/test_plugin_termdebug.vim
index d2e046ff8..a045a8dad 100644
--- a/src/testdir/test_plugin_termdebug.vim
+++ b/src/testdir/test_plugin_termdebug.vim
@@ -200,6 +200,8 @@ func Test_termdebug_decimal_breakpoints()
   Break 9
   call term_wait(gdb_buf)
   redraw!
+  Run
+  call term_wait(gdb_buf, 400)
 
   let i = 2
   while i <= 258
diff --git a/src/version.c b/src/version.c
index ff3b32f39..76c51ab75 100644
--- a/src/version.c
+++ b/src/version.c
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1519,
 /**/
     1518,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uYptn-0095kL-Ly%40256bit.org.

Raspunde prin e-mail lui