aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_startup.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-23 09:19:11 -0500
committerGitHub <noreply@github.com>2020-11-23 09:19:11 -0500
commitb155e6b54c6087fac57ea4278a3431ced7bfc7f6 (patch)
tree2060bc9e28c805bc31fa805334e8ab5139eea4e1 /src/nvim/testdir/test_startup.vim
parent029b5d036d7eb5a16b8e3a1d37f05f92ecf40499 (diff)
parentdd3583836b80e8eccd483d41125aa24f63d2f038 (diff)
downloadrneovim-b155e6b54c6087fac57ea4278a3431ced7bfc7f6.tar.gz
rneovim-b155e6b54c6087fac57ea4278a3431ced7bfc7f6.tar.bz2
rneovim-b155e6b54c6087fac57ea4278a3431ced7bfc7f6.zip
Merge pull request #11148 from janlazo/vim-8.0.1455
vim-patch:8.0.1455,8.1.{2115,2361}
Diffstat (limited to 'src/nvim/testdir/test_startup.vim')
-rw-r--r--src/nvim/testdir/test_startup.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim
index 7fe0168356..6214975ef5 100644
--- a/src/nvim/testdir/test_startup.vim
+++ b/src/nvim/testdir/test_startup.vim
@@ -581,6 +581,27 @@ func Test_read_stdin()
call delete('Xtestout')
endfunc
+func Test_set_shell()
+ let after =<< trim [CODE]
+ call writefile([&shell], "Xtestout")
+ quit!
+ [CODE]
+
+ if has('win32')
+ let $SHELL = 'C:\with space\cmd.exe'
+ let expected = '"C:\with space\cmd.exe"'
+ else
+ let $SHELL = '/bin/with space/sh'
+ let expected = '"/bin/with space/sh"'
+ endif
+
+ if RunVimPiped([], after, '', '')
+ let lines = readfile('Xtestout')
+ call assert_equal(expected, lines[0])
+ endif
+ call delete('Xtestout')
+endfunc
+
func Test_progpath()
" Tests normally run with "./vim" or "../vim", these must have been expanded
" to a full path.