test_unit no longer needs to see itself

This commit is contained in:
Josh Coalson
2002-05-17 06:29:22 +00:00
parent 419d90cbe4
commit 9fb3a4c34d
4 changed files with 7 additions and 9 deletions

View File

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

View File

@@ -20,14 +20,14 @@
#include <stdio.h>
extern int test_metadata_object();
extern int test_metadata_file_manipulation(const char *progname);
extern int test_metadata_file_manipulation();
int test_metadata(const char *progname)
int test_metadata()
{
if(0 != test_metadata_object())
return 1;
if(0 != test_metadata_file_manipulation(progname))
if(0 != test_metadata_file_manipulation())
return 1;
printf("\nPASSED!\n");

View File

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