Mercurial > vim
diff src/testdir/test_quickfix.vim @ 18697:c035b4fa4bc5 v8.1.2340
patch 8.1.2340: quickfix test fails under valgrind and asan
Commit: https://github.com/vim/vim/commit/a106e6cde682bda4ad10ed745acb51975fcb02e0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 24 22:13:58 2019 +0100
patch 8.1.2340: quickfix test fails under valgrind and asan
Problem: Quickfix test fails under valgrind and asan.
Solution: Make sure long line does not overflow IObuff. (Dominique Pelle,
closes #5263) Put back fix for large terminals. (Yegappan
Lakshmanan, closes #5264)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 24 Nov 2019 22:15:03 +0100 |
parents | 48ded92ce361 |
children | 97d534e17874 |
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -626,10 +626,15 @@ func s:test_xhelpgrep(cchar) let w3 = win_getid() call assert_true(&buftype == 'help') call assert_true(winnr() == 1) - call win_gotoid(w1) - call assert_equal(w3, win_getid(winnr('k'))) - call win_gotoid(w2) - call assert_equal(w3, win_getid(winnr('k'))) + " See jump_to_help_window() for details + let w2_width = winwidth(w2) + if w2_width != &columns && w2_width < 80 + call assert_equal(['col', [['leaf', w3], + \ ['row', [['leaf', w2], ['leaf', w1]]]]], winlayout()) + else + call assert_equal(['row', [['col', [['leaf', w3], ['leaf', w2]]], + \ ['leaf', w1]]] , winlayout()) + endif new | only set buftype=help