From: Bram Moolenaar Date: Sun, 6 Mar 2016 15:38:28 +0000 (+0100) Subject: patch 7.4.1501 X-Git-Tag: v7.4.1501 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38fd4bb2842df7634823b99c655b3896a7a2e988;p=vim 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 index 3bdfd4cbf..31a4ff6eb 100644 --- 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 index 106fa2081..0e51caa34 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1501, /**/ 1500, /**/