]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1004: tests: a few termdebug tests are flaky v9.1.1004
authorChristian Brabandt <cb@256bit.org>
Sat, 11 Jan 2025 14:43:12 +0000 (15:43 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 11 Jan 2025 14:43:12 +0000 (15:43 +0100)
Problem:  tests: a few termdebug tests are flaky; test_termdebug_basic()
          and test_termdebug_config_types() may fail if there is too
          much load
Solution: Set g:test_is_flaky

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_termdebug.vim
src/version.c

index 0acdab1a508c1446ffe2607eb39232d5704aef70..d2e046ff8253ce65a149ae055061b5b665541460 100644 (file)
@@ -60,6 +60,7 @@ packadd termdebug
 " should be the first test to run, since it validates the window layout with
 " win ids
 func Test_termdebug_basic()
+  let g:test_is_flaky = 1
   let bin_name = 'XTD_basic'
   let src_name = bin_name .. '.c'
   call s:generate_files(bin_name)
@@ -579,6 +580,7 @@ endfunction
 
 function Test_termdebug_config_types()
   " TODO Remove the deprecated features after 1 Jan 2025.
+  let g:test_is_flaky = 1
   let g:termdebug_config = {}
   let s:error_message = 'Deprecation Warning:'
   call assert_true(maparg('K', 'n', 0, 1)->empty())
index 0d2189b35bfc0c84f2bd23de677a012b81ab5832..6179cb3f9b7513880f3338f3ca3acaaad4fe3b18 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1004,
 /**/
     1003,
 /**/