]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.2050: tests: Test_cd_completion may fail master v9.1.2050
authorMuraoka Taro <koron.kaoriya@gmail.com>
Sat, 3 Jan 2026 23:44:35 +0000 (23:44 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 3 Jan 2026 23:47:27 +0000 (23:47 +0000)
commit6625ba359e33f8223d146f3ae87a880c446b5470
treee464db57a2299b7ec7583bb5db658363a363737d
parent4a9967bddfc55499653d5b2e467f488eccb7a2fb
patch 9.1.2050: tests: Test_cd_completion may fail

Problem:  tests: Test_cd_completion() may fail depending on the contents
          of the root directory of the current drive on Windows.
          readdir() may return a directory that cannot "cd" to, causing
          this test to fail. An example of such a directory is
          "System Volume Information" which only admin can "cd" to.
Solution: When determining the directory to use for testing, use the
          directory that we actually "cd" to successfully.
          In addition, directories with '$' in their names are also
          excluded, as they are considered environment variables during
          completion and do not work as expected.
          Example: "$RECYCLE.BIN" (Muraoka Taro).

closes: #19078

Signed-off-by: Muraoka Taro <koron.kaoriya@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_cd.vim
src/version.c