]> git.sesse.net Git - vlc/commitdiff
test_block: rename to bloc_test.c because all test_ files are ignored by git.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 30 Aug 2009 18:58:53 +0000 (20:58 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 30 Aug 2009 19:02:07 +0000 (21:02 +0200)
src/test/Makefile.am
src/test/block_test.c [moved from src/test/test_block.c with 94% similarity]

index 57caeaede40beba896748aad75a6f32b67fa4c81..89d546a16a32b278a31a9f2104e9873d03da6d97 100644 (file)
@@ -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
similarity index 94%
rename from src/test/test_block.c
rename to src/test/block_test.c
index 0f88219e46ba4f000d14a3d4cb53ea0233e7bdc1..05f9b7c8944239d5cc97940930f6fc00c8e2684c 100644 (file)
@@ -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;
 }