patch 9.0.0363: common names in test files causes tests to be flaky
Problem: Common names in test files causes tests to be flaky.
Solution: Use more specific names.
diff --git a/src/testdir/test_filechanged.vim b/src/testdir/test_filechanged.vim
index 5dca43f..5a9a400 100644
--- a/src/testdir/test_filechanged.vim
+++ b/src/testdir/test_filechanged.vim
@@ -253,15 +253,15 @@
" Test for editing a new buffer from a FileChangedShell autocmd
func Test_FileChangedShell_newbuf()
- call writefile(['one', 'two'], 'Xfile')
- new Xfile
+ call writefile(['one', 'two'], 'Xchfile')
+ new Xchfile
augroup testnewbuf
autocmd FileChangedShell * enew
augroup END
- call writefile(['red'], 'Xfile')
+ call writefile(['red'], 'Xchfile')
call assert_fails('checktime', 'E811:')
au! testnewbuf
- call delete('Xfile')
+ call delete('Xchfile')
endfunc
" vim: shiftwidth=2 sts=2 expandtab