patch 9.0.0313: using common name in tests leads to flaky tests
Problem: Using common name in tests leads to flaky tests.
Solution: Rename files and directories to be more specific.
diff --git a/src/testdir/test_backup.vim b/src/testdir/test_backup.vim
index 4c7abe8..ee4b26f 100644
--- a/src/testdir/test_backup.vim
+++ b/src/testdir/test_backup.vim
@@ -78,11 +78,11 @@
" 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