aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_system.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-03-26 23:06:39 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-03-27 01:12:44 -0400
commitecd27296586bdde53ffb37654130ee4d7924498b (patch)
tree1a162536f2e5f2b8044a48ef4533ccbde9652faf /src/nvim/testdir/test_system.vim
parent618b17f5754e4b15657ef65326f2fba3f9bc73c2 (diff)
downloadrneovim-ecd27296586bdde53ffb37654130ee4d7924498b.tar.gz
rneovim-ecd27296586bdde53ffb37654130ee4d7924498b.tar.bz2
rneovim-ecd27296586bdde53ffb37654130ee4d7924498b.zip
test/old: use CheckFunction, enable more tests
Some skipped tests have custom error messages. Use ":CheckFunction" command for standard error message on missing function.
Diffstat (limited to 'src/nvim/testdir/test_system.vim')
-rw-r--r--src/nvim/testdir/test_system.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_system.vim b/src/nvim/testdir/test_system.vim
index 9cf8690d57..6bbe714d19 100644
--- a/src/nvim/testdir/test_system.vim
+++ b/src/nvim/testdir/test_system.vim
@@ -93,7 +93,6 @@ function! Test_system_exmode()
endfunc
func Test_system_with_shell_quote()
- throw 'skipped: enable after porting method patches'
CheckMSWindows
call mkdir('Xdir with spaces', 'p')
@@ -122,7 +121,8 @@ func Test_system_with_shell_quote()
let msg = printf('shell=%s shellxquote=%s', &shell, &shellxquote)
try
- let out = 'echo 123'->system()
+ " let out = 'echo 123'->system()
+ let out = system('echo 123')
catch
call assert_report(printf('%s: %s', msg, v:exception))
continue