# HG changeset patch # User Bram Moolenaar # Date 1569681003 -7200 # Node ID 78d4902b22df20afa44ec002f558a92ab985366f # Parent 3bf0235443ac3f5cec4866bfe07a26ed0f4b82f0 patch 8.1.2093: MS-Windows: system() test fails Commit: https://github.com/vim/vim/commit/9be0e0b9d31e42d0074527a7789836087475142a Author: Bram Moolenaar Date: Sat Sep 28 16:25:00 2019 +0200 patch 8.1.2093: MS-Windows: system() test fails Problem: MS-Windows: system() test fails. Solution: Expect CR when using systemlist(). diff --git a/src/testdir/test_system.vim b/src/testdir/test_system.vim --- a/src/testdir/test_system.vim +++ b/src/testdir/test_system.vim @@ -12,9 +12,9 @@ func Test_System() else call assert_equal("123\n", system('echo 123')) call assert_equal(["123\r"], systemlist('echo 123')) - call assert_equal("123", system('more', '123')) - call assert_equal(["123"], systemlist('more', '123')) - call assert_equal(["as\df"], systemlist('more', ["as\df"])) + call assert_equal("123\n", system('more', '123')) + call assert_equal(["123\r"], systemlist('more', '123')) + call assert_equal(["as\r", "df\r"], systemlist('more', ["as\df"])) endif if !executable('cat') || !executable('wc') @@ -62,7 +62,7 @@ func Test_System() call assert_equal(['asdf', "pw\er", 'xxxx'], out) else let out = systemlist('more', bufnr('%')) - call assert_equal(['asdf', "pw\er", 'xxxx'], out) + call assert_equal(["asdf\r", "pw\r", "er\r", "xxxx\r"], out) endif bwipe! diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2093, +/**/ 2092, /**/ 2091,