Commit b7c25063 authored by Josh Coalson's avatar Josh Coalson
Browse files

pass argv[0] down to manip tests

parent b5efa027
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment