Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
b7c25063
Commit
b7c25063
authored
May 09, 2002
by
Josh Coalson
Browse files
pass argv[0] down to manip tests
parent
b5efa027
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/test_unit/main.c
View file @
b7c25063
...
...
@@ -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
;
...
...
src/test_unit/metadata.c
View file @
b7c25063
...
...
@@ -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
(
"
\n
PASSED!
\n
"
);
...
...
src/test_unit/metadata.h
View file @
b7c25063
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment