diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-02 21:55:50 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-02 21:55:50 +0100 |
commit | b18b49699776485150b71626069a40d12d2c5590 (patch) | |
tree | e583af125f2624cedd5420ba218f9628b122e209 /src/testdir/test_fold.vim | |
parent | f5724376ab7362b5a98eaa8a331d663ef722c2a2 (diff) | |
download | vim-git-b18b49699776485150b71626069a40d12d2c5590.tar.gz |
patch 9.0.0363: common names in test files causes tests to be flakyv9.0.0363
Problem: Common names in test files causes tests to be flaky.
Solution: Use more specific names.
Diffstat (limited to 'src/testdir/test_fold.vim')
-rw-r--r-- | src/testdir/test_fold.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testdir/test_fold.vim b/src/testdir/test_fold.vim index 261808402..33303da1b 100644 --- a/src/testdir/test_fold.vim +++ b/src/testdir/test_fold.vim @@ -137,9 +137,9 @@ func Test_indent_fold_with_read() call assert_equal(1, foldlevel(n)) endfor - call writefile(["a", "", "\<Tab>a"], 'Xfile') + call writefile(["a", "", "\<Tab>a"], 'Xinfofile') foldopen - 2read Xfile + 2read Xinfofile %foldclose call assert_equal(1, foldlevel(1)) call assert_equal(2, foldclosedend(1)) @@ -150,7 +150,7 @@ func Test_indent_fold_with_read() bwipe! set foldmethod& - call delete('Xfile') + call delete('Xinfofile') endfunc func Test_combining_folds_indent() @@ -216,8 +216,8 @@ func Test_update_folds_expr_read() set foldexpr=s:TestFoldExpr(v:lnum) 2 foldopen - call writefile(['b', 'b', 'a', 'a', 'd', 'a', 'a', 'c'], 'Xfile') - read Xfile + call writefile(['b', 'b', 'a', 'a', 'd', 'a', 'a', 'c'], 'Xupfofile') + read Xupfofile %foldclose call assert_equal(2, foldclosedend(1)) call assert_equal(0, foldlevel(3)) @@ -226,7 +226,7 @@ func Test_update_folds_expr_read() call assert_equal(10, foldclosedend(7)) call assert_equal(14, foldclosedend(11)) - call delete('Xfile') + call delete('Xupfofile') bwipe! set foldmethod& foldexpr& endfunc |