changeset 8420:f6d21a33d489 v7.4.1501

commit https://github.com/vim/vim/commit/38fd4bb2842df7634823b99c655b3896a7a2e988 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 6 16:38:28 2016 +0100 patch 7.4.1501 Problem: Garbage collection with an option channel is not tested. Solution: Call garbagecollect() in the test.
author Christian Brabandt <cb@256bit.org>
date Sun, 06 Mar 2016 16:45:04 +0100
parents 2c4cd788b860
children 4be5f7dd51dc
files src/testdir/test_channel.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -146,6 +146,9 @@ func s:communicate(port)
   endif
   call assert_equal('got it', s:responseMsg)
 
+  " Collect garbage, tests that our handle isn't collected.
+  call garbagecollect()
+
   " check setting options (without testing the effect)
   call ch_setoptions(handle, {'callback': 's:NotUsed'})
   call ch_setoptions(handle, {'timeout': 1111})
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1501,
+/**/
     1500,
 /**/
     1499,