pass argv[0] down to manip tests

This commit is contained in:
Josh Coalson
2002-05-09 05:52:01 +00:00
parent b5efa027d0
commit b7c250635a
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ int main(int argc, char *argv[])
if(0 != test_bitbuffer()) if(0 != test_bitbuffer())
return 1; return 1;
if(0 != test_metadata()) if(0 != test_metadata(argv[0]))
return 1; return 1;
return 0; return 0;

View File

@@ -20,14 +20,14 @@
#include <stdio.h> #include <stdio.h>
extern int test_metadata_object(); 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()) if(0 != test_metadata_object())
return 1; return 1;
if(0 != test_metadata_file_manipulation()) if(0 != test_metadata_file_manipulation(progname))
return 1; return 1;
printf("\nPASSED!\n"); printf("\nPASSED!\n");

View File

@@ -19,6 +19,6 @@
#ifndef FLAC__TEST_UNIT_METADATA_H #ifndef FLAC__TEST_UNIT_METADATA_H
#define FLAC__TEST_UNIT_METADATA_H #define FLAC__TEST_UNIT_METADATA_H
int test_metadata(); int test_metadata(const char *progname);
#endif #endif