summaryrefslogtreecommitdiffstats
path: root/src/testdir
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2023-11-11 18:59:33 +0100
committerChristian Brabandt <cb@256bit.org>2023-11-11 18:59:33 +0100
commit305127f9f2f6058b4ec071041a2c98f76114a9b0 (patch)
tree898b5a1e9e2709046c8c454be777113e6bd0de1a /src/testdir
parent1b08d2cd0789fd9aaae148a64ff46342730022d7 (diff)
patch 9.0.2100: CI: test_termdebug failsv9.0.2100
Problem: CI: test_termdebug fails Solution: only test for a changed winlayout, if the window width actually changed Also, include an unrelated comment (which doesn't warrant its own patch number) Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_termdebug.vim22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/testdir/test_termdebug.vim b/src/testdir/test_termdebug.vim
index 3b2b8c1afd..16de057803 100644
--- a/src/testdir/test_termdebug.vim
+++ b/src/testdir/test_termdebug.vim
@@ -96,16 +96,22 @@ func Test_termdebug_basic()
bw!
endif
set columns=160
+ let winw = winwidth(0)
Var
- call assert_equal(winnr(), winnr('$') - 1)
- call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]])
- let cn += 1
- bw!
+ if winwidth(0) < winw
+ call assert_equal(winnr(), winnr('$') - 1)
+ call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]])
+ let cn += 1
+ bw!
+ endif
+ let winw = winwidth(0)
Asm
- call assert_equal(winnr(), winnr('$') - 1)
- call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]])
- let cn += 1
- bw!
+ if winwidth(0) < winw
+ call assert_equal(winnr(), winnr('$') - 1)
+ call assert_equal(winlayout(), ['col', [['leaf', 1002], ['leaf', 1001], ['row', [['leaf', 1003 + cn], ['leaf', 1000]]]]])
+ let cn += 1
+ bw!
+ endif
set columns&
wincmd t