]> granicus.if.org Git - vim/commitdiff
patch 8.2.0304: terminal test if failing on some systems v8.2.0304
authorBram Moolenaar <Bram@vim.org>
Sun, 23 Feb 2020 12:29:31 +0000 (13:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 23 Feb 2020 12:29:31 +0000 (13:29 +0100)
Problem:    Terminal test if failing on some systems.
Solution:   Wait for the job to finish. (James McCoy)

src/testdir/test_terminal.vim
src/version.c

index 64bc7db1ed157f62cf702c616a0094b3881af909..b86614de5c5acf50abafc6e65d7a57a6bf547e7c 100644 (file)
@@ -781,7 +781,8 @@ func Test_terminal_special_chars()
   call writefile(['x'], 'Xdir with spaces/quoted"file')
   term ls Xdir\ with\ spaces/quoted\"file
   call WaitForAssert({-> assert_match('quoted"file', term_getline('', 1))})
-  call term_wait('')
+  " make sure the job has finished
+  call WaitForAssert({-> assert_match('finish', term_getstatus(bufnr()))})
 
   call delete('Xdir with spaces', 'rf')
   bwipe
index 97669c09550aee9ed4dd31d4832122fef3f92a89..ce3702d8381d36ee4fb1df4d8d256cb910473d36 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    304,
 /**/
     303,
 /**/