Dominique wrote:

> Using vim-7.4.2100 (and earlier), I see that all tests
> pass on Linux x86_64. However, if I I enable valgrind
> in src/testdir/Makefile, then tests fail:
> 
> $ make test
> ...
> VIMRUNTIME=../../runtime; export VIMRUNTIME; valgrind --tool=memcheck
> --leak-check=yes --num-callers=25 --log-file=valgrind.test_alot ../vim
> -f  -u unix.vim -U NONE --noplugin --not-a-term -u NONE -U NONE -S
> runtest.vim test_alot.vim

[...]

> From test_netbeans.vim:
> Executing Test_nb_basic()
> Flaky test failed, running it again
> Executing Test_nb_basic()
> Executing Test_nb_file_auth()
> Executed 3 tests
> 1 FAILED:
> Found errors in Test_nb_basic():
> function 
> RunTheTest[9]..Test_nb_basic[2]..<SNR>4_run_server[1]..RunServer[21]..Nb_basic
> line 11: Expected 2 but got 130
> function 
> RunTheTest[9]..Test_nb_basic[2]..<SNR>4_run_server[1]..RunServer[21]..Nb_basic
> line 12: Expected 20 but got 2
> function 
> RunTheTest[9]..Test_nb_basic[2]..<SNR>4_run_server[1]..RunServer[21]..Nb_basic
> line 23: Expected '0:disconnect=1' but got '0:disconnect=0'

I have seen this before, I suspect there is a race condition.

> Test results:
> test61 FAILED

This test is time sensitive.  Perhaps it can be fixed by using
test_settime().

> The test failure looks 100% reproducible with valgrind enabled.
> 
> Besides the test failure, several testdir/valgrind.* files
> show memory leaks, despite having built Vim with
> -DEXIT_FREE. For example, in valgrind.test_alot, I see:

test_alot is a collection of tests.  Can you run them separately to
isolate the one(s) that causes the leak?


-- 
TIM:   That is not an ordinary rabbit ... 'tis the most foul cruel and
       bad-tempered thing you ever set eyes on.
ROBIN: You tit.  I soiled my armour I was so scared!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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.

Raspunde prin e-mail lui