Problem: tests: test_terminal2 may hang in GUI mode
Solution: break the loop in gui_mch_update() after at most 99 iterations
(h-east)
related: #16211
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
void
gui_mch_update(void)
{
- while (g_main_context_pending(NULL) && !vim_is_input_buf_full())
+ int cnt = 0; // prevent endless loop
+ while (g_main_context_pending(NULL) && !vim_is_input_buf_full()
+ && ++cnt < 100)
g_main_context_iteration(NULL, TRUE);
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 930,
/**/
929,
/**/