diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2017-11-06 21:00:19 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:49:42 +0100 |
commit | d4485f7cc0e4bab7d8ca41590956fa96d31f6aab (patch) | |
tree | 8451bdd13169c0938816557b46aa57ad0b64cc75 /test/functional/eval/system_spec.lua | |
parent | 8d58012786b837380e6006d38580852d9506fbc8 (diff) | |
download | rneovim-d4485f7cc0e4bab7d8ca41590956fa96d31f6aab.tar.gz rneovim-d4485f7cc0e4bab7d8ca41590956fa96d31f6aab.tar.bz2 rneovim-d4485f7cc0e4bab7d8ca41590956fa96d31f6aab.zip |
win: test: check non-shell system()
Diffstat (limited to 'test/functional/eval/system_spec.lua')
-rw-r--r-- | test/functional/eval/system_spec.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/eval/system_spec.lua b/test/functional/eval/system_spec.lua index 96212bf538..74c3b77d91 100644 --- a/test/functional/eval/system_spec.lua +++ b/test/functional/eval/system_spec.lua @@ -89,7 +89,9 @@ describe('system()', function() end) it('does NOT run in shell', function() - if not iswin() then + if iswin() then + eq("%PATH%\n", eval("system(['powershell', '-NoProfile', '-NoLogo', '-ExecutionPolicy', 'RemoteSigned', '-Command', 'echo', '%PATH%'])")) + else eq("* $PATH %PATH%\n", eval("system(['echo', '*', '$PATH', '%PATH%'])")) end end) |