[FFmpeg-cvslog] libavutil: Remove pointless file test program.

Diego Biurrun git at videolan.org
Sat Jan 28 08:04:55 CET 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Jan 25 20:13:17 2012 +0100| [299ab0fd17a1738e21f3d036128db23ec14b2f3a] | committer: Diego Biurrun

libavutil: Remove pointless file test program.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=299ab0fd17a1738e21f3d036128db23ec14b2f3a
---

 libavutil/Makefile |    2 +-
 libavutil/file.c   |   18 ------------------
 2 files changed, 1 insertions(+), 19 deletions(-)

diff --git a/libavutil/Makefile b/libavutil/Makefile
index 6896846..63d848a 100644
--- a/libavutil/Makefile
+++ b/libavutil/Makefile
@@ -75,7 +75,7 @@ OBJS-$(ARCH_ARM) += arm/cpu.o
 OBJS-$(ARCH_PPC) += ppc/cpu.o
 OBJS-$(ARCH_X86) += x86/cpu.o
 
-TESTPROGS = adler32 aes avstring base64 cpu crc des eval file fifo lfg lls \
+TESTPROGS = adler32 aes avstring base64 cpu crc des eval fifo lfg lls \
             md5 opt parseutils rational sha tree
 TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
 
diff --git a/libavutil/file.c b/libavutil/file.c
index 649bb76..77aaca0 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -129,21 +129,3 @@ void av_file_unmap(uint8_t *bufptr, size_t size)
     av_free(bufptr);
 #endif
 }
-
-#ifdef TEST
-
-#undef printf
-
-int main(void)
-{
-    uint8_t *buf;
-    size_t size;
-    if (av_file_map("file.c", &buf, &size, 0, NULL) < 0)
-        return 1;
-
-    buf[0] = 's';
-    printf("%s", buf);
-    av_file_unmap(buf, size);
-    return 0;
-}
-#endif



More information about the ffmpeg-cvslog mailing list