diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-29 11:02:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-29 11:02:59 +0100 |
commit | e7cda97b6b578b33a42de0d27ac2876337c641ca (patch) | |
tree | bb161b2253876f4b38b1bdd672b8203a3821166a /src/testdir/test_backup.vim | |
parent | 98d1069a9cc6f1b439be154aeae0ed32a598e855 (diff) |
patch 9.0.0313: using common name in tests leads to flaky testsv9.0.0313
Problem: Using common name in tests leads to flaky tests.
Solution: Rename files and directories to be more specific.
Diffstat (limited to 'src/testdir/test_backup.vim')
-rw-r--r-- | src/testdir/test_backup.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_backup.vim b/src/testdir/test_backup.vim index 4c7abe8e56..ee4b26f66e 100644 --- a/src/testdir/test_backup.vim +++ b/src/testdir/test_backup.vim @@ -78,11 +78,11 @@ endfunc " Test for using a non-existing directory as a backup directory func Test_non_existing_backupdir() set backupdir=./non_existing_dir backupskip= - call writefile(['line1'], 'Xfile') - new Xfile + call writefile(['line1'], 'Xbackupdir') + new Xbackupdir call assert_fails('write', 'E510:') set backupdir&vim backupskip&vim - call delete('Xfile') + call delete('Xbackupdir') endfunc " vim: shiftwidth=2 sts=2 expandtab |