1
0
forked from aniani/vim

patch 9.1.1206: tests: test_filetype fails when a file is a directory

Problem:  tests: test_filetype fails when a file is a directory
          (Eisuke Kawashima)
Solution: When encountering a directory instead of a file, skip that
          particular filetype test

fixes: #16894

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-03-15 10:19:48 +01:00
parent 5f2a959553
commit 63a885b650
2 changed files with 5 additions and 0 deletions

View File

@@ -938,6 +938,9 @@ def s:CheckItems(checks: dict<list<string>>)
for [ft, names] in items(checks)
for i in range(0, len(names) - 1)
if isdirectory(fnameescape(names[i]))
continue
endif
new
try
exe 'edit ' .. fnameescape(names[i])

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1206,
/**/
1205,
/**/