Mercurial > vim
comparison src/testdir/test_termdebug.vim @ 33758:75176b7f8170 v9.0.2101
patch 9.0.2101: CI: test_termdebug may still fail
Commit: https://github.com/vim/vim/commit/fdbadea4b60e5e1a0bf192dc5ee04d8ab06f4399
Author: shane.xb.qian <shane.qian@foxmail.com>
Date: Sun Nov 12 09:42:12 2023 +0100
patch 9.0.2101: CI: test_termdebug may still fail
Problem: CI: test_termdebug may still fail
Solution: use term_wait() to make it more robust
closes: #13529
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 Nov 2023 09:45:05 +0100 |
parents | 0839c759c9d1 |
children | ffe9ffcb57e7 |
comparison
equal
deleted
inserted
replaced
33757:b882a17c8e2b | 33758:75176b7f8170 |
---|---|
94 call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['leaf', 1000], ['leaf', 1003 + cn]]]) | 94 call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['leaf', 1000], ['leaf', 1003 + cn]]]) |
95 let cn += 1 | 95 let cn += 1 |
96 bw! | 96 bw! |
97 endif | 97 endif |
98 set columns=160 | 98 set columns=160 |
99 call term_wait(gdb_buf) | |
99 let winw = winwidth(0) | 100 let winw = winwidth(0) |
100 Var | 101 Var |
101 if winwidth(0) < winw | 102 if winwidth(0) < winw |
102 call assert_equal(winnr(), winnr('$') - 1) | 103 call assert_equal(winnr(), winnr('$') - 1) |
103 call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]]) | 104 call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]]) |
111 call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]]) | 112 call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]]) |
112 let cn += 1 | 113 let cn += 1 |
113 bw! | 114 bw! |
114 endif | 115 endif |
115 set columns& | 116 set columns& |
117 call term_wait(gdb_buf) | |
116 | 118 |
117 wincmd t | 119 wincmd t |
118 quit! | 120 quit! |
119 redraw! | 121 redraw! |
120 call WaitForAssert({-> assert_equal(1, winnr('$'))}) | 122 call WaitForAssert({-> assert_equal(1, winnr('$'))}) |