Watiko wrote:
> This patch confused me.
>
> + alloc_fail( {countdown}, {when}, {repeat})
>
> + alloc_fail({id}, {countdown}, {repeat})
> *alloc_fail()*
> + This is for testing: If the memory allocation with {id} is
> + called, then decrement {countdown}, and when it reaches
> zero
> + let memory allocation fail {repeat} times. When {repeat}
> is
> + smaller than one it fails one time.
>
> Two descriptions above looks inconsistent.
Sorry, the first one was for a previous attempt. When I tried writing a
test with that (counting down number of alloc() calls) it turned out to
be very tricky, so I changed it to the behavior that is now implemented.
It does add a little overhead, passing an ID to the alloc() function,
but it's probably the best solution to test failing memory allocations.
--
FROG: How you English say: I one more time, mac, I unclog my nose towards
you, sons of a window-dresser, so, you think you could out-clever us
French fellows with your silly knees-bent creeping about advancing
behaviour. (blows a raspberry) I wave my private parts at your aunties,
you brightly-coloured, mealy-templed, cranberry-smelling, electric
donkey-bottom biters.
"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.