Skip to content

Commit 047b3e2

Browse files
committed
Fix Test_v_argv test failure
This is an odd test failure as the test expects the binary name to be 'vim' while MacVim uses a capitalized version 'Vim'.
1 parent 4f32ce3 commit 047b3e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/testdir/test_startup.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,9 @@ func Test_v_argv()
678678

679679
let out = system(GetVimCommand() . ' -es -V1 -X arg1 --cmd "echo v:argv" --cmd q')
680680
let list = out->split("', '")
681-
call assert_match('vim', list[0])
681+
if !has('gui_macvim') " MacVim doesn't always use 'vim' as the executable as it could be 'Vim'
682+
call assert_match('vim', list[0])
683+
endif
682684
let idx = index(list, 'arg1')
683685
call assert_true(idx > 2)
684686
call assert_equal(['arg1', '--cmd', 'echo v:argv', '--cmd', 'q'']'], list[idx:])

0 commit comments

Comments
 (0)