diff src/testdir/test_viminfo.vim @ 30158:008808e60963 v9.0.0415

patch 9.0.0415: on MS-Windows some tests are flaky Commit: https://github.com/vim/vim/commit/0500e87eba7b2a82392dbb5d573de19f8ff138e7 Author: K.Takata <kentkt@csc.jp> Date: Thu Sep 8 12:28:02 2022 +0100 patch 9.0.0415: on MS-Windows some tests are flaky Problem: On MS-Windows some tests are flaky. Solution: Add sleeps, disable swapfile, mark test as flaky. (Ken Takata, closes #11082)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Sep 2022 13:30:05 +0200
parents d891115c0aea
children 0913cd44fdfa
line wrap: on
line diff
--- a/src/testdir/test_viminfo.vim
+++ b/src/testdir/test_viminfo.vim
@@ -722,6 +722,7 @@ func Test_viminfo_file_mark_unloaded_buf
 endfunc
 
 func Test_viminfo_oldfiles()
+  set noswapfile
   let v:oldfiles = []
   let lines = [
 	\ '# comment line',
@@ -765,6 +766,7 @@ func Test_viminfo_oldfiles()
   call assert_equal("/tmp/another.txt", expand("%"))
   bwipe
   delmark E
+  set swapfile&
 endfunc
 
 " Test for storing and restoring buffer list in 'viminfo'