oldtests: win: cmd.exe echo has trailing CR

This commit is contained in:
Jan Edmund Lazo 2018-03-28 13:53:15 -04:00 committed by Jan Edmund Lazo
parent e3687165a7
commit fa0e32fba2

View File

@ -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