From 3be5aa1a34f63f4e5e2b384098de2020a4c5b3bc Mon Sep 17 00:00:00 2001 From: erw7 Date: Fri, 18 Jan 2019 14:11:40 +0900 Subject: test/win: executable(), exepath() #9516 --- src/nvim/os/fs.c | 2 +- src/nvim/testdir/test_functions.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index 9a96241178..b75607b7b1 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -276,7 +276,7 @@ bool os_can_exe(const char_u *name, char_u **abspath, bool use_path) } #ifdef WIN32 -/// Returns true if extension of `name` is executalbe file exteinsion. +/// Returns true if extension of `name` is executable file exteinsion. static bool is_extension_executable(const char *name) FUNC_ATTR_NONNULL_ALL { diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index 13e2dcf804..46c2d0f4cd 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -881,8 +881,8 @@ func Test_Executable() call assert_equal(1, executable('notepad')) call assert_equal(1, executable('notepad.exe')) call assert_equal(0, executable('notepad.exe.exe')) - call assert_equal(1, executable('shell32.dll')) - call assert_equal(1, executable('win.ini')) + call assert_equal(0, executable('shell32.dll')) + call assert_equal(0, executable('win.ini')) elseif has('unix') call assert_equal(1, executable('cat')) call assert_equal(0, executable('nodogshere')) -- cgit