projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3d8795
)
[tests] use run_on_default_source in tempo
author
Paul Brossier
<piem@piem.org>
Thu, 29 Nov 2018 15:55:43 +0000
(16:55 +0100)
committer
Paul Brossier
<piem@piem.org>
Thu, 29 Nov 2018 15:55:43 +0000
(16:55 +0100)
tests/src/tempo/test-tempo.c
patch
|
blob
|
history
diff --git
a/tests/src/tempo/test-tempo.c
b/tests/src/tempo/test-tempo.c
index
3fbb4cd
..
5979152
100644
(file)
--- a/
tests/src/tempo/test-tempo.c
+++ b/
tests/src/tempo/test-tempo.c
@@
-7,14
+7,8
@@
int main (int argc, char **argv)
{
uint_t err = 0;
if (argc < 2) {
- err = 2;
PRINT_WRN("no arguments, running tests\n");
- if (test_wrong_params() != 0) {
- PRINT_ERR("tests failed!\n");
- err = 1;
- } else {
- err = 0;
- }
+ err = test_wrong_params();
PRINT_MSG("usage: %s <source_path> [samplerate] [win_size] [hop_size]\n",
argv[0]);
return err;
@@
-135,5
+129,5
@@
int test_wrong_params(void)
del_fvec(in);
del_fvec(out);
- return
0
;
+ return
run_on_default_source(main)
;
}