mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
pass argv[0] down to manip tests
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
#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");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user