# HG changeset patch # User Christian Brabandt # Date 1457279104 -3600 # Node ID f6d21a33d489ec4d12ac1b657a84df191e308574 # Parent 2c4cd788b8604428c3bac19c7a1eb4641600c002 commit https://github.com/vim/vim/commit/38fd4bb2842df7634823b99c655b3896a7a2e988 Author: Bram Moolenaar 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. diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim --- 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}) diff --git a/src/version.c b/src/version.c --- 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,