summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-11 22:25:57 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-11 22:25:57 +0200
commit2b6ef856fb89f703714f3f1f567d9bd7c81079f3 (patch)
tree56ff0fbf54221a5518d0a31c6a05ac811b52e3ca
parent9b7bf9e98f06ece595fed7a3ff53ecce89797a53 (diff)
patch 8.2.1184: some tests failv8.2.1184
Problem: Some tests fail. Solution: Adjust tests for different assert_fails() behavior. Remove unused variable.
-rw-r--r--src/evalvars.c1
-rw-r--r--src/testdir/test_assert.vim8
-rw-r--r--src/testdir/test_eval_stuff.vim11
-rw-r--r--src/version.c2
4 files changed, 10 insertions, 12 deletions
diff --git a/src/evalvars.c b/src/evalvars.c
index 70660397c7..6e67206dc7 100644
--- a/src/evalvars.c
+++ b/src/evalvars.c
@@ -3389,7 +3389,6 @@ static char_u *redir_varname = NULL;
var_redir_start(char_u *name, int append)
{
int called_emsg_before;
- int err;
typval_T tv;
// Catch a bad name early.
diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim
index c2d055c95e..0ec710a14c 100644
--- a/src/testdir/test_assert.vim
+++ b/src/testdir/test_assert.vim
@@ -208,12 +208,12 @@ func Test_notmatch()
endfunc
func Test_assert_fail_fails()
- call assert_equal(1, assert_fails('xxx', {}))
- call assert_match("Expected {} but got 'E731:", v:errors[0])
+ call assert_equal(1, assert_fails('xxx', 'E12345'))
+ call assert_match("Expected 'E12345' but got 'E492:", v:errors[0])
call remove(v:errors, 0)
- call assert_equal(1, assert_fails('xxx', {}, 'stupid'))
- call assert_match("stupid: Expected {} but got 'E731:", v:errors[0])
+ call assert_equal(1, assert_fails('xxx', 'E9876', 'stupid'))
+ call assert_match("stupid: Expected 'E9876' but got 'E492:", v:errors[0])
call remove(v:errors, 0)
call assert_equal(1, assert_fails('echo', '', 'echo command'))
diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim
index 3a229b5c1a..6d95cc0338 100644
--- a/src/testdir/test_eval_stuff.vim
+++ b/src/testdir/test_eval_stuff.vim
@@ -1,5 +1,7 @@
" Tests for various eval things.
+source view_util.vim
+
function s:foo() abort
try
return [] == 0
@@ -17,13 +19,8 @@ func Test_nocatch_restore_silent_emsg()
throw 1
catch
endtry
- echoerr 'wrong'
- let c1 = nr2char(screenchar(&lines, 1))
- let c2 = nr2char(screenchar(&lines, 2))
- let c3 = nr2char(screenchar(&lines, 3))
- let c4 = nr2char(screenchar(&lines, 4))
- let c5 = nr2char(screenchar(&lines, 5))
- call assert_equal('wrong', c1 . c2 . c3 . c4 . c5)
+ echoerr 'wrong again'
+ call assert_equal('wrong again', ScreenLine(&lines))
endfunc
func Test_mkdir_p()
diff --git a/src/version.c b/src/version.c
index ece1006d3f..7c3ee485f4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1184,
+/**/
1183,
/**/
1182,