mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.0.0433: beeps when running tests
Problem: Quite a few beeps when running tests. Solution: Set 'belloff' for these tests. (Christian Brabandt)
This commit is contained in:
parent
12d1dc9155
commit
c3c766ea8c
@ -1,6 +1,7 @@
|
|||||||
Test for visual mode not being reset causing E315 error.
|
Test for visual mode not being reset causing E315 error.
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:enew
|
:enew
|
||||||
:let g:msg="Everything's fine."
|
:let g:msg="Everything's fine."
|
||||||
:function! TriggerTheProblem()
|
:function! TriggerTheProblem()
|
||||||
|
@ -6,6 +6,7 @@ Also test search()
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
/Start cursor here
|
/Start cursor here
|
||||||
vaBiBD:?Bug?,/Piece/-2w! test.out
|
vaBiBD:?Bug?,/Piece/-2w! test.out
|
||||||
/^- Bug
|
/^- Bug
|
||||||
|
@ -103,6 +103,7 @@ if (condition) // Remove the next comment leader!
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:" Test with backspace set to the non-compatible setting
|
:" Test with backspace set to the non-compatible setting
|
||||||
|
:set belloff=all
|
||||||
/^\d\+ this
|
/^\d\+ this
|
||||||
:set cp bs=2
|
:set cp bs=2
|
||||||
Avim1
|
Avim1
|
||||||
|
@ -4,6 +4,7 @@ Note: This test will fail if "cat" is not available.
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:" first write three test files, one in each format
|
:" first write three test files, one in each format
|
||||||
:set fileformat=unix
|
:set fileformat=unix
|
||||||
:set fileformats=
|
:set fileformats=
|
||||||
|
@ -23,6 +23,7 @@ Test for insert expansion
|
|||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
:se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff&
|
:se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff&
|
||||||
|
:set belloff=all
|
||||||
:se cot=
|
:se cot=
|
||||||
nO#include "Xtestfile"
|
nO#include "Xtestfile"
|
||||||
ru
|
ru
|
||||||
|
@ -2,6 +2,7 @@ Tests for folding. vim: set ft=vim :
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:" We also need the +syntax feature here.
|
:" We also need the +syntax feature here.
|
||||||
:if !has("syntax")
|
:if !has("syntax")
|
||||||
e! test.ok
|
e! test.ok
|
||||||
|
@ -4,6 +4,7 @@ undo-able pieces. Do that by setting 'undolevels'.
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:"
|
:"
|
||||||
:" Test 'undofile': first a simple one-line change.
|
:" Test 'undofile': first a simple one-line change.
|
||||||
:set nocompatible viminfo+=nviminfo visualbell
|
:set nocompatible viminfo+=nviminfo visualbell
|
||||||
@ -25,7 +26,6 @@ u:.w! test.out
|
|||||||
:set undofile
|
:set undofile
|
||||||
:bwipe!
|
:bwipe!
|
||||||
:e Xtestfile
|
:e Xtestfile
|
||||||
:" TODO: this beeps
|
|
||||||
u:.w >>test.out
|
u:.w >>test.out
|
||||||
:"
|
:"
|
||||||
:" Test 'undofile', add 10 lines, delete 6 lines, undo 3
|
:" Test 'undofile', add 10 lines, delete 6 lines, undo 3
|
||||||
|
@ -2,6 +2,7 @@ Tests for find completion.
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:" Do all test in a separate window to avoid E211 when we recursively
|
:" Do all test in a separate window to avoid E211 when we recursively
|
||||||
:" delete the Xfind directory during cleanup
|
:" delete the Xfind directory during cleanup
|
||||||
:"
|
:"
|
||||||
|
@ -10,6 +10,7 @@ If it isn't available then the test will be skipped.
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:if !executable("cksum")
|
:if !executable("cksum")
|
||||||
: e! test.ok
|
: e! test.ok
|
||||||
: w! test.out
|
: w! test.out
|
||||||
|
@ -6,7 +6,7 @@ blocks.
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
:set nocp fileformat=unix undolevels=-1 viminfo+=nviminfo
|
:set nocp fileformat=unix undolevels=-1 viminfo+=nviminfo belloff=all
|
||||||
:e! Xtest
|
:e! Xtest
|
||||||
ggdG
|
ggdG
|
||||||
:let text = "\tabcdefghijklmnoparstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnoparstuvwxyz0123456789"
|
:let text = "\tabcdefghijklmnoparstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnoparstuvwxyz0123456789"
|
||||||
|
@ -2,6 +2,7 @@ Test for Lua interface and luaeval() function
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:so lua.vim
|
:so lua.vim
|
||||||
:set nocompatible viminfo+=nviminfo
|
:set nocompatible viminfo+=nviminfo
|
||||||
:lua l = vim.list():add"item0":add"dictionary with list OK":add"item2"
|
:lua l = vim.list():add"item0":add"dictionary with list OK":add"item2"
|
||||||
|
@ -17,6 +17,7 @@ Test cases:
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:set enc=utf-8 nocp viminfo+=nviminfo
|
:set enc=utf-8 nocp viminfo+=nviminfo
|
||||||
:
|
:
|
||||||
:" User functions
|
:" User functions
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
" A series of tests that can run in one Vim invocation.
|
" A series of tests that can run in one Vim invocation.
|
||||||
" This makes testing go faster, since Vim doesn't need to restart.
|
" This makes testing go faster, since Vim doesn't need to restart.
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
source test_assign.vim
|
source test_assign.vim
|
||||||
source test_autocmd.vim
|
source test_autocmd.vim
|
||||||
source test_changedtick.vim
|
source test_changedtick.vim
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
" runtest.vim. Checking for the multi_byte feature is in the individual
|
" runtest.vim. Checking for the multi_byte feature is in the individual
|
||||||
" files, so that they can be run by themselves.
|
" files, so that they can be run by themselves.
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
source test_expr_utf8.vim
|
source test_expr_utf8.vim
|
||||||
source test_matchadd_conceal_utf8.vim
|
source test_matchadd_conceal_utf8.vim
|
||||||
source test_regexp_utf8.vim
|
source test_regexp_utf8.vim
|
||||||
|
@ -2,6 +2,7 @@ Tests for :[count]close! and :[count]hide vim: set ft=vim :
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:let tests = []
|
:let tests = []
|
||||||
:for i in range(5)
|
:for i in range(5)
|
||||||
:new
|
:new
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
" Tests for editing the command line.
|
" Tests for editing the command line.
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
|
|
||||||
func Test_complete_tab()
|
func Test_complete_tab()
|
||||||
call writefile(['testfile'], 'Xtestfile')
|
call writefile(['testfile'], 'Xtestfile')
|
||||||
call feedkeys(":e Xtest\t\r", "tx")
|
call feedkeys(":e Xtest\t\r", "tx")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
" Tests for diff mode
|
" Tests for diff mode
|
||||||
|
set belloff=all
|
||||||
|
|
||||||
func Test_diff_fold_sync()
|
func Test_diff_fold_sync()
|
||||||
enew!
|
enew!
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
if !has("digraphs") || !has("multi_byte")
|
if !has("digraphs") || !has("multi_byte")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
set belloff=all
|
||||||
|
|
||||||
func! Put_Dig(chars)
|
func! Put_Dig(chars)
|
||||||
exe "norm! o\<c-k>".a:chars
|
exe "norm! o\<c-k>".a:chars
|
||||||
|
@ -2,6 +2,7 @@ Test for erasing backword
|
|||||||
|
|
||||||
STARTTEST
|
STARTTEST
|
||||||
:so small.vim
|
:so small.vim
|
||||||
|
:set belloff=all
|
||||||
:so mbyte.vim
|
:so mbyte.vim
|
||||||
:set encoding=utf-8
|
:set encoding=utf-8
|
||||||
G
|
G
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
" Test for various Normal mode commands
|
" Test for various Normal mode commands
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
func! Setup_NewWindow()
|
func! Setup_NewWindow()
|
||||||
10new
|
10new
|
||||||
call setline(1, range(1,100))
|
call setline(1, range(1,100))
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
" Tests for 'packpath' and :packadd
|
" Tests for 'packpath' and :packadd
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
|
|
||||||
func SetUp()
|
func SetUp()
|
||||||
let s:topdir = expand('%:h') . '/Xdir'
|
let s:topdir = expand('%:h') . '/Xdir'
|
||||||
exe 'set packpath=' . s:topdir
|
exe 'set packpath=' . s:topdir
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
" Test for the search command
|
" Test for the search command
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
func Test_search_cmdline()
|
func Test_search_cmdline()
|
||||||
if !exists('+incsearch')
|
if !exists('+incsearch')
|
||||||
return
|
return
|
||||||
|
@ -4,6 +4,7 @@ if !has('textobjects')
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
function! CpoM(line, useM, expected)
|
function! CpoM(line, useM, expected)
|
||||||
new
|
new
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
" undo-able pieces. Do that by setting 'undolevels'.
|
" undo-able pieces. Do that by setting 'undolevels'.
|
||||||
" Also tests :earlier and :later.
|
" Also tests :earlier and :later.
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
func Test_undotree()
|
func Test_undotree()
|
||||||
exe "normal Aabc\<Esc>"
|
exe "normal Aabc\<Esc>"
|
||||||
set ul=100
|
set ul=100
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
" Tests for user defined commands
|
" Tests for user defined commands
|
||||||
|
|
||||||
" Test for <mods> in user defined commands
|
" Test for <mods> in user defined commands
|
||||||
|
set belloff=all
|
||||||
function Test_cmdmods()
|
function Test_cmdmods()
|
||||||
let g:mods = ''
|
let g:mods = ''
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@ if !has('visual')
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
set belloff=all
|
||||||
|
|
||||||
func Test_block_shift_multibyte()
|
func Test_block_shift_multibyte()
|
||||||
" Uses double-wide character.
|
" Uses double-wide character.
|
||||||
if !has('multi_byte')
|
if !has('multi_byte')
|
||||||
|
@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
433,
|
||||||
/**/
|
/**/
|
||||||
432,
|
432,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user