]> granicus.if.org Git - vim/commitdiff
patch 8.1.1546: in some tests 'tags' is set but not restored v8.1.1546
authorBram Moolenaar <Bram@vim.org>
Sat, 15 Jun 2019 16:40:37 +0000 (18:40 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 15 Jun 2019 16:40:37 +0000 (18:40 +0200)
Problem:    In some tests 'tags' is set but not restored. (Daniel Hahler)
Solution:   Restore 'tags'. (closes #4535)

src/testdir/test_autocmd.vim
src/testdir/test_cmdline.vim
src/testdir/test_options.vim
src/testdir/test_tagcase.vim
src/testdir/test_tagjump.vim
src/testdir/test_taglist.vim
src/version.c

index 3254db8cdc952ac2e96a1a504060f658337f97f2..d762c91948c216b01ba06f3d0a3d589b75bb33e4 100644 (file)
@@ -1100,6 +1100,7 @@ func Test_OptionSet()
 
   " Cleanup
   au! OptionSet
+  " set tags&
   for opt in ['nu', 'ai', 'acd', 'ar', 'bs', 'backup', 'cul', 'cp', 'backupext', 'tags', 'spelllang', 'statusline', 'foldignore', 'cmdheight', 'undolevels', 'wrapmargin', 'foldcolumn', 'wrapscan', 'autoread', 'cindent', 'cursorcolumn']
     exe printf(":set %s&vim", opt)
   endfor
index 3b275b617d06817b5dc94aec8400af19c4eb0ef1..f0d83c62d0229767da8e558297467b241b6b6fa5 100644 (file)
@@ -378,6 +378,7 @@ func Test_getcompletion()
   endfor
 
   call delete('Xtags')
+  set tags&
 
   call assert_fails('call getcompletion("", "burp")', 'E475:')
 endfunc
index 9d3065d159d6644ac3153c578dc31d0a891a926c..e8eaef038ff639c7fb18550ba8dec42113f61e87 100644 (file)
@@ -237,6 +237,7 @@ func Test_set_completion()
 
   call feedkeys(":set tags=./\\\\ dif\<C-A>\<C-B>\"\<CR>", 'tx')
   call assert_equal('"set tags=./\\ diff diffexpr diffopt', @:)
+  set tags&
 endfunc
 
 func Test_set_errors()
index 83e532822dcdeccbadd16c5a8df993d8b6613bfa..08782b3f1be7242e0891e6127d00ce2fb539c131 100644 (file)
@@ -44,6 +44,7 @@ func Test_tagcase()
   endfor
 
   call delete('Xtags')
+  set tags&
   set ic&
   setg tc&
   setl tc&
index 7e64ac43589b445d538119597ec622670b4b013c..e4084b314a83bf13314b6ab0c2d95ccbc504c785 100644 (file)
@@ -20,6 +20,7 @@ func Test_cancel_ptjump()
   call assert_equal(2, winnr('$'))
 
   call delete('Xtags')
+  set tags&
   quit
 endfunc
 
@@ -104,6 +105,7 @@ func Test_tagjump_switchbuf()
   enew | only
   call delete('Xfile1')
   call delete('Xtags')
+  set tags&
   set switchbuf&vim
 endfunc
 
@@ -431,7 +433,7 @@ func Test_tagnr_recall()
   tag
   call assert_equal(bufname('%'), 'Xtest.h')
 
-  set tag&
+  set tags&
   call delete('Xtags')
   bwipe Xtest.h
   bwipe Xtest.c
@@ -467,6 +469,7 @@ func Test_tag_line_toolong()
   endtry
   call assert_equal('Ignoring long line in tags file', split(execute('messages'), '\n')[-1])
   call delete('Xtags')
+  set tags&
   let &verbose = old_vbs
 endfunc
 
index 6506c3f1d1f83884f2baca28d3bf9f204fbe6fb9..9ddefc5153b02477525c6ab0558ca27dda878745 100644 (file)
@@ -30,6 +30,7 @@ func Test_taglist()
   call assert_equal('call cursor(3, 4)', cmd[0]['cmd'])
 
   call delete('Xtags')
+  set tags&
   bwipe
 endfunc
 
@@ -50,6 +51,7 @@ func Test_taglist_native_etags()
        \ map(taglist('set_signals'), {i, v -> [v.name, v.cmd]}))
 
   call delete('Xtags')
+  set tags&
 endfunc
 
 func Test_taglist_ctags_etags()
@@ -69,6 +71,7 @@ func Test_taglist_ctags_etags()
        \ map(taglist('set_signals'), {i, v -> [v.name, v.cmd]}))
 
   call delete('Xtags')
+  set tags&
 endfunc
 
 func Test_tags_too_long()
@@ -110,4 +113,5 @@ func Test_tagsfile_without_trailing_newline()
   call assert_equal('Foo', tl[0].name)
 
   call delete('Xtags')
+  set tags&
 endfunc
index 51101f81c0b697f0690c005b72716d6509d346e9..675beb8f8c03f56b1d102b14737dfe70bbfacadc 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1546,
 /**/
     1545,
 /**/