[vlc-devel] commit: test_block: rename to bloc_test. c because all test_ files are ignored by git. ( Rémi Duraffort )

git version control git at videolan.org
Sun Aug 30 21:05:09 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Aug 30 20:58:53 2009 +0200| [26f013d0985feae6a2df4c857e854616fb50450d] | committer: Rémi Duraffort 

test_block: rename to bloc_test.c because all test_ files are ignored by git.

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

 src/test/Makefile.am                    |    2 +-
 src/test/{test_block.c => block_test.c} |    5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index 57caeae..89d546a 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 0f88219..05f9b7c 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;
 }
 




More information about the vlc-devel mailing list