1
0
forked from aniani/vim

patch 7.4.1501

Problem:    Garbage collection with an option channel is not tested.
Solution:   Call garbagecollect() in the test.
This commit is contained in:
Bram Moolenaar
2016-03-06 16:38:28 +01:00
parent 9ef00be261
commit 38fd4bb284
2 changed files with 5 additions and 0 deletions

View File

@@ -146,6 +146,9 @@ func s:communicate(port)
endif endif
call assert_equal('got it', s:responseMsg) 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) " check setting options (without testing the effect)
call ch_setoptions(handle, {'callback': 's:NotUsed'}) call ch_setoptions(handle, {'callback': 's:NotUsed'})
call ch_setoptions(handle, {'timeout': 1111}) call ch_setoptions(handle, {'timeout': 1111})

View File

@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1501,
/**/ /**/
1500, 1500,
/**/ /**/