Mercurial > vim
comparison src/testdir/test_edit.vim @ 29970:d891115c0aea v9.0.0323
patch 9.0.0323: using common name in tests leads to flaky tests
Commit: https://github.com/vim/vim/commit/3b0d70f4ff436cb144683dafd956e8a3ee485a90
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 22:31:20 2022 +0100
patch 9.0.0323: 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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Aug 2022 23:45:04 +0200 |
parents | 2a327999c05c |
children | 98f5a0618a77 |
comparison
equal
deleted
inserted
replaced
29969:5f2d38cacd6c | 29970:d891115c0aea |
---|---|
1490 | 1490 |
1491 func Test_edit_complete_very_long_name() | 1491 func Test_edit_complete_very_long_name() |
1492 " Long directory names only work on Unix. | 1492 " Long directory names only work on Unix. |
1493 CheckUnix | 1493 CheckUnix |
1494 | 1494 |
1495 let dirname = getcwd() . "/Xdir" | 1495 let dirname = getcwd() . "/Xlongdir" |
1496 let longdirname = dirname . repeat('/' . repeat('d', 255), 4) | 1496 let longdirname = dirname . repeat('/' . repeat('d', 255), 4) |
1497 try | 1497 try |
1498 call mkdir(longdirname, 'p') | 1498 call mkdir(longdirname, 'p') |
1499 catch /E739:/ | 1499 catch /E739:/ |
1500 " Long directory name probably not supported. | 1500 " Long directory name probably not supported. |
1727 endfunc | 1727 endfunc |
1728 | 1728 |
1729 " Test for editing a directory | 1729 " Test for editing a directory |
1730 func Test_edit_is_a_directory() | 1730 func Test_edit_is_a_directory() |
1731 CheckEnglish | 1731 CheckEnglish |
1732 let dirname = getcwd() . "/Xdir" | 1732 let dirname = getcwd() . "/Xeditdir" |
1733 call mkdir(dirname, 'p') | 1733 call mkdir(dirname, 'p') |
1734 | 1734 |
1735 new | 1735 new |
1736 redir => msg | 1736 redir => msg |
1737 exe 'edit' dirname | 1737 exe 'edit' dirname |