[vlc-devel] commit: Fix test case ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Aug 30 20:37:28 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 30 21:37:23 2009 +0300| [cb81fa6f2d10d1545054a507b6e23337981e0242] | committer: Rémi Denis-Courmont 

Fix test case

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb81fa6f2d10d1545054a507b6e23337981e0242
---

 src/test/test_block.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/test/test_block.c b/src/test/test_block.c
index 38304ea..0f88219 100644
--- a/src/test/test_block.c
+++ b/src/test/test_block.c
@@ -74,7 +74,7 @@ static void test_block (void)
     assert (block->i_buffer == 200 + sizeof (text) + 200);
     assert (!memcmp (block->p_buffer + 200, text, sizeof (text)));
 
-    block = block_Realloc (block, -200, sizeof (text));
+    block = block_Realloc (block, -200, sizeof (text) + 200);
     assert (block != NULL);
     assert (block->i_buffer == sizeof (text));
     assert (!memcmp (block->p_buffer, text, sizeof (text)));




More information about the vlc-devel mailing list