aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-03-28 13:53:15 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-04-12 02:23:53 -0400
commitfa0e32fba2b5af04a4e1c5afeb4af66c2386dd1e (patch)
treec351cc91c1b615ab18b6b734a3c7f71481407993
parente3687165a74ba2f3234cd6acc156ec12f85a5f3a (diff)
downloadrneovim-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.vim10
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