diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-29 22:31:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-29 22:31:20 +0100 |
commit | 3b0d70f4ff436cb144683dafd956e8a3ee485a90 (patch) | |
tree | 20d6db8894730c9ed823c9c854f696704e993949 /src/testdir/test_startup.vim | |
parent | 4f1b083be43f351bc107541e7b0c9655a5d2c0bb (diff) |
patch 9.0.0323: using common name in tests leads to flaky testsv9.0.0323
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_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 2908ab663d..573b6767ee 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -1064,13 +1064,13 @@ func Test_exrc() call writefile(v:errors, 'Xtestout') qall [CODE] - call mkdir('Xdir') - call writefile(['let exrc_found=37'], 'Xdir/.exrc') - call writefile(after, 'Xdir/Xafter') - let cmd = GetVimProg() . ' --not-a-term -S Xafter --cmd "cd Xdir" --cmd "set enc=utf8 exrc secure"' + call mkdir('Xrcdir') + call writefile(['let exrc_found=37'], 'Xrcdir/.exrc') + call writefile(after, 'Xrcdir/Xafter') + let cmd = GetVimProg() . ' --not-a-term -S Xafter --cmd "cd Xrcdir" --cmd "set enc=utf8 exrc secure"' exe "silent !" . cmd - call assert_equal([], readfile('Xdir/Xtestout')) - call delete('Xdir', 'rf') + call assert_equal([], readfile('Xrcdir/Xtestout')) + call delete('Xrcdir', 'rf') endfunc " Test for starting Vim with a non-terminal as input/output @@ -1125,10 +1125,10 @@ func Test_w_arg() " Test for failing to open the script output file. This test works only when " the language is English. if v:lang == "C" || v:lang =~ '^[Ee]n' - call mkdir("Xdir") - let m = system(GetVimCommand() .. " -w Xdir") - call assert_equal("Cannot open for script output: \"Xdir\"\n", m) - call delete("Xdir", 'rf') + call mkdir("Xargdir") + let m = system(GetVimCommand() .. " -w Xargdir") + call assert_equal("Cannot open for script output: \"Xargdir\"\n", m) + call delete("Xargdir", 'rf') endif " A number argument sets the 'window' option |