From 26f013d0985feae6a2df4c857e854616fb50450d Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Sun, 30 Aug 2009 20:58:53 +0200 Subject: [PATCH] test_block: rename to bloc_test.c because all test_ files are ignored by git. --- src/test/Makefile.am | 2 +- src/test/{test_block.c => block_test.c} | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) rename src/test/{test_block.c => block_test.c} (94%) diff --git a/src/test/Makefile.am b/src/test/Makefile.am index 57caeaede4..89d546a16a 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -17,7 +17,7 @@ AM_CFLAGS = `$(VLC_CONFIG) --cflags libvlc` AM_LDFLAGS = -no-install LDADD = ../libvlccore.la -test_block_SOURCES = test_block.c ../misc/block.c +test_block_SOURCES = block_test.c ../misc/block.c test_dictionary_SOURCES = dictionary.c test_i18n_atof_SOURCES = i18n_atof.c test_keys_SOURCES = keys.c diff --git a/src/test/test_block.c b/src/test/block_test.c similarity index 94% rename from src/test/test_block.c rename to src/test/block_test.c index 0f88219e46..05f9b7c894 100644 --- a/src/test/test_block.c +++ b/src/test/block_test.c @@ -75,10 +75,6 @@ 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); //assert (block == NULL); @@ -88,6 +84,7 @@ int main (void) { test_block (); test_block_File (); + test_block (); return 0; } -- 2.39.5