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_modeline.vim b/src/testdir/test_modeline.vim
index f28ad3e..fc0779b 100644
--- a/src/testdir/test_modeline.vim
+++ b/src/testdir/test_modeline.vim
@@ -350,13 +350,13 @@
" Some options cannot be set from the modeline when 'diff' option is set
func Test_modeline_diff_buffer()
- call writefile(['vim: diff foldmethod=marker wrap'], 'Xfile')
+ call writefile(['vim: diff foldmethod=marker wrap'], 'Xmdifile')
set foldmethod& nowrap
- new Xfile
+ new Xmdifile
call assert_equal('manual', &foldmethod)
call assert_false(&wrap)
set wrap&
- call delete('Xfile')
+ call delete('Xmdifile')
bw
endfunc