]> git.sesse.net Git - ffmpeg/commitdiff
libavutil: Remove pointless file test program.
authorDiego Biurrun <diego@biurrun.de>
Wed, 25 Jan 2012 19:13:17 +0000 (20:13 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 26 Jan 2012 21:44:37 +0000 (22:44 +0100)
libavutil/Makefile
libavutil/file.c

index 6896846081d670c929af93c97261e07ffcb260c6..63d848a3439e205316ede8383590407ce4e6a1d7 100644 (file)
@@ -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
 
index 649bb767a0a63836ad9b70eddfdf69dff7ad9c2b..77aaca0fc0c6de8162b5e73b0ade3c4db0fd4edb 100644 (file)
@@ -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