Mercurial > vim
comparison src/testdir/test_netbeans.vim @ 22892:d3afe009826a v8.2.1993
patch 8.2.1993: occasional failure of the netbeans test
Commit: https://github.com/vim/vim/commit/50dc3ecc642ee88348cb353cf85d08eac26c75dd
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 16 18:39:43 2020 +0100
patch 8.2.1993: occasional failure of the netbeans test
Problem: Occasional failure of the netbeans test.
Solution: Add "silent!". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7304)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 16 Nov 2020 18:45:04 +0100 |
parents | 70eb58639009 |
children | b545334ae654 |
comparison
equal
deleted
inserted
replaced
22891:2cf73a41bf09 | 22892:d3afe009826a |
---|---|
34 " Read the "Xnetbeans" file and filter out geometry messages. | 34 " Read the "Xnetbeans" file and filter out geometry messages. |
35 func ReadXnetbeans() | 35 func ReadXnetbeans() |
36 let l = readfile("Xnetbeans") | 36 let l = readfile("Xnetbeans") |
37 " Xnetbeans may include '0:geometry=' messages in the GUI Vim if the window | 37 " Xnetbeans may include '0:geometry=' messages in the GUI Vim if the window |
38 " position, size, or z order are changed. Remove these messages because | 38 " position, size, or z order are changed. Remove these messages because |
39 " these message will break the assert for the output. | 39 " these messages will break the assert for the output. |
40 return filter(l, 'v:val !~ "^0:geometry="') | 40 return filter(l, 'v:val !~ "^0:geometry="') |
41 endfunc | 41 endfunc |
42 | 42 |
43 func Nb_basic(port) | 43 func Nb_basic(port) |
44 call delete("Xnetbeans") | 44 call delete("Xnetbeans") |
925 | 925 |
926 " This test used to reference a buffer after it was freed leading to an ASAN | 926 " This test used to reference a buffer after it was freed leading to an ASAN |
927 " error. | 927 " error. |
928 func Test_nb_bwipe_buffer() | 928 func Test_nb_bwipe_buffer() |
929 call s:run_server('Nb_bwipe_buffer') | 929 call s:run_server('Nb_bwipe_buffer') |
930 %bwipe! | 930 silent! %bwipe! |
931 sleep 100m | 931 sleep 100m |
932 nbclose | 932 nbclose |
933 endfunc | 933 endfunc |
934 | 934 |
935 " vim: shiftwidth=2 sts=2 expandtab | 935 " vim: shiftwidth=2 sts=2 expandtab |