From 047b3e2a027c115069d50db63965809cd583fbc9 Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Wed, 30 Oct 2019 04:08:11 -0700 Subject: [PATCH] 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'. --- src/testdir/test_startup.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 358ca81718..46359ff200 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -678,7 +678,9 @@ func Test_v_argv() let out = system(GetVimCommand() . ' -es -V1 -X arg1 --cmd "echo v:argv" --cmd q') let list = out->split("', '") - call assert_match('vim', list[0]) + if !has('gui_macvim') " MacVim doesn't always use 'vim' as the executable as it could be 'Vim' + call assert_match('vim', list[0]) + endif let idx = index(list, 'arg1') call assert_true(idx > 2) call assert_equal(['arg1', '--cmd', 'echo v:argv', '--cmd', 'q'']'], list[idx:])