Skip to content

Commit 38fd4bb

Browse files
committed
patch 7.4.1501
Problem: Garbage collection with an option channel is not tested. Solution: Call garbagecollect() in the test.
1 parent 9ef00be commit 38fd4bb

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/test_channel.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ func s:communicate(port)
146146
endif
147147
call assert_equal('got it', s:responseMsg)
148148

149+
" Collect garbage, tests that our handle isn't collected.
150+
call garbagecollect()
151+
149152
" check setting options (without testing the effect)
150153
call ch_setoptions(handle, {'callback': 's:NotUsed'})
151154
call ch_setoptions(handle, {'timeout': 1111})

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1501,
746748
/**/
747749
1500,
748750
/**/

0 commit comments

Comments
 (0)