Skip to content

Commit c3c766e

Browse files
committed
patch 8.0.0433: beeps when running tests
Problem: Quite a few beeps when running tests. Solution: Set 'belloff' for these tests. (Christian Brabandt)
1 parent 12d1dc9 commit c3c766e

27 files changed

+31
-2
lines changed

src/testdir/test103.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Test for visual mode not being reset causing E315 error.
22
STARTTEST
33
:so small.vim
4+
:set belloff=all
45
:enew
56
:let g:msg="Everything's fine."
67
:function! TriggerTheProblem()

src/testdir/test14.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Also test search()
66

77
STARTTEST
88
:so small.vim
9+
:set belloff=all
910
/Start cursor here
1011
vaBiBD:?Bug?,/Piece/-2w! test.out
1112
/^- Bug

src/testdir/test29.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ if (condition) // Remove the next comment leader!
103103

104104
STARTTEST
105105
:" Test with backspace set to the non-compatible setting
106+
:set belloff=all
106107
/^\d\+ this
107108
:set cp bs=2
108109
Avim1

src/testdir/test30.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Note: This test will fail if "cat" is not available.
44

55
STARTTEST
66
:so small.vim
7+
:set belloff=all
78
:" first write three test files, one in each format
89
:set fileformat=unix
910
:set fileformats=

src/testdir/test32.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Test for insert expansion
2323
STARTTEST
2424
:so small.vim
2525
:se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff&
26+
:set belloff=all
2627
:se cot=
2728
nO#include "Xtestfile"
2829
ru

src/testdir/test45.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Tests for folding. vim: set ft=vim :
22

33
STARTTEST
44
:so small.vim
5+
:set belloff=all
56
:" We also need the +syntax feature here.
67
:if !has("syntax")
78
e! test.ok

src/testdir/test72.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ undo-able pieces. Do that by setting 'undolevels'.
44

55
STARTTEST
66
:so small.vim
7+
:set belloff=all
78
:"
89
:" Test 'undofile': first a simple one-line change.
910
:set nocompatible viminfo+=nviminfo visualbell
@@ -25,7 +26,6 @@ u:.w! test.out
2526
:set undofile
2627
:bwipe!
2728
:e Xtestfile
28-
:" TODO: this beeps
2929
u:.w >>test.out
3030
:"
3131
:" Test 'undofile', add 10 lines, delete 6 lines, undo 3

src/testdir/test73.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Tests for find completion.
22

33
STARTTEST
44
:so small.vim
5+
:set belloff=all
56
:" Do all test in a separate window to avoid E211 when we recursively
67
:" delete the Xfind directory during cleanup
78
:"

src/testdir/test77.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ If it isn't available then the test will be skipped.
1010

1111
STARTTEST
1212
:so small.vim
13+
:set belloff=all
1314
:if !executable("cksum")
1415
: e! test.ok
1516
: w! test.out

src/testdir/test78.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ blocks.
66

77
STARTTEST
88
:so small.vim
9-
:set nocp fileformat=unix undolevels=-1 viminfo+=nviminfo
9+
:set nocp fileformat=unix undolevels=-1 viminfo+=nviminfo belloff=all
1010
:e! Xtest
1111
ggdG
1212
:let text = "\tabcdefghijklmnoparstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnoparstuvwxyz0123456789"

0 commit comments

Comments
 (0)