[vlc-devel] commit: test_block: fix merging (my bad). ( Rémi Duraffort )
git version control
git at videolan.org
Sun Aug 30 21:09:02 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Aug 30 21:07:16 2009 +0200| [f236ec4d6b4347be2cdb9ce1918cd24bdffb9ecd] | committer: Rémi Duraffort
test_block: fix merging (my bad).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f236ec4d6b4347be2cdb9ce1918cd24bdffb9ecd
---
src/test/block_test.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/test/block_test.c b/src/test/block_test.c
index efeb41c..6f133a9 100644
--- a/src/test/block_test.c
+++ b/src/test/block_test.c
@@ -75,6 +75,9 @@ static void test_block (void)
assert (!memcmp (block->p_buffer + 200, text, 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)));
block_Release (block);
//block = block_Alloc (SIZE_MAX);
@@ -83,7 +86,6 @@ static void test_block (void)
int main (void)
{
- test_block ();
test_block_File ();
test_block ();
return 0;
More information about the vlc-devel
mailing list