Hi Bram,

2016-5-25(Wed) 0:33:53 UTC+9 Bram Moolenaar:
> Patch 7.4.1838
> Problem:    Functions specifically for testing do not sort together.
> Solution:   Rename garbagecollect_for_testing() to test_garbagecollect_now().
>             Add test_null_list(), test_null_dict(), etc.
> Files:      src/eval.c, src/testdir/test_expr.vim,
>             src/testdir/test_channel.vim, runtime/doc/eval.txt
[...]

I found a fix leaks in the comment.
Please check an attached patch.

And, Is disable_char_avail_for_testing() not to rename?
--
Best regards,
Hirohito Higashi (a.k.a. h_east)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/eval.c b/src/eval.c
index 41f98d2..6727615 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -8949,7 +8949,7 @@ get_func_tv(
 
 	if (get_vim_var_nr(VV_TESTING))
 	{
-	    /* Prepare for calling garbagecollect_for_testing(), need to know
+	    /* Prepare for calling test_garbagecollect_now(), need to know
 	     * what variables are used on the call stack. */
 	    if (funcargs.ga_itemsize == 0)
 		ga_init2(&funcargs, (int)sizeof(typval_T *), 50);
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index 2b38981..57edcc1 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -60,7 +60,7 @@ let $HOME = '/does/not/exist'
 
 let s:srcdir = expand('%:p:h:h')
 
-" Prepare for calling garbagecollect_for_testing().
+" Prepare for calling test_garbagecollect_now().
 let v:testing = 1
 
 " Support function: get the alloc ID by name.

Raspunde prin e-mail lui