diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2018-03-28 13:53:15 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-04-12 02:23:53 -0400 |
commit | fa0e32fba2b5af04a4e1c5afeb4af66c2386dd1e (patch) | |
tree | c351cc91c1b615ab18b6b734a3c7f71481407993 | |
parent | e3687165a74ba2f3234cd6acc156ec12f85a5f3a (diff) | |
download | rneovim-fa0e32fba2b5af04a4e1c5afeb4af66c2386dd1e.tar.gz rneovim-fa0e32fba2b5af04a4e1c5afeb4af66c2386dd1e.tar.bz2 rneovim-fa0e32fba2b5af04a4e1c5afeb4af66c2386dd1e.zip |
oldtests: win: cmd.exe echo has trailing CR
-rw-r--r-- | src/nvim/testdir/test_system.vim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_system.vim b/src/nvim/testdir/test_system.vim index ce9d110d82..d3c0594c03 100644 --- a/src/nvim/testdir/test_system.vim +++ b/src/nvim/testdir/test_system.vim @@ -5,14 +5,12 @@ function! Test_System() return endif let out = system('echo 123') - " On Windows we may get a trailing space. - if out != "123 \n" - call assert_equal("123\n", out) - endif + call assert_equal("123\n", out) let out = systemlist('echo 123') - " On Windows we may get a trailing space and CR. - if out != ["123 \r"] + if &shell =~# 'cmd.exe$' + call assert_equal(["123\r"], out) + else call assert_equal(['123'], out) endif |