pass argv[0] down to manip tests
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 9 May 2002 05:52:01 +0000 (05:52 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 9 May 2002 05:52:01 +0000 (05:52 +0000)
src/test_unit/main.c
src/test_unit/metadata.c
src/test_unit/metadata.h

index 56b8840..dae77a2 100644 (file)
@@ -26,7 +26,7 @@ int main(int argc, char *argv[])
        if(0 != test_bitbuffer())
                return 1;
 
-       if(0 != test_metadata())
+       if(0 != test_metadata(argv[0]))
                return 1;
 
        return 0;
index e49723a..4c66f27 100644 (file)
 #include <stdio.h>
 
 extern int test_metadata_object();
-extern int test_metadata_file_manipulation();
+extern int test_metadata_file_manipulation(const char *progname);
 
-int test_metadata()
+int test_metadata(const char *progname)
 {
        if(0 != test_metadata_object())
                return 1;
 
-       if(0 != test_metadata_file_manipulation())
+       if(0 != test_metadata_file_manipulation(progname))
                return 1;
 
        printf("\nPASSED!\n");
index 11bc964..0d99c25 100644 (file)
@@ -19,6 +19,6 @@
 #ifndef FLAC__TEST_UNIT_METADATA_H
 #define FLAC__TEST_UNIT_METADATA_H
 
-int test_metadata();
+int test_metadata(const char *progname);
 
 #endif