projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0d4c78
)
[tests] also use run_on_default_source in onset
author
Paul Brossier
<piem@piem.org>
Thu, 29 Nov 2018 15:14:05 +0000
(16:14 +0100)
committer
Paul Brossier
<piem@piem.org>
Thu, 29 Nov 2018 15:14:05 +0000
(16:14 +0100)
tests/src/onset/test-onset.c
patch
|
blob
|
history
diff --git
a/tests/src/onset/test-onset.c
b/tests/src/onset/test-onset.c
index
ac17fbe
..
b464768
100644
(file)
--- a/
tests/src/onset/test-onset.c
+++ b/
tests/src/onset/test-onset.c
@@
-9,12
+9,7
@@
int main (int argc, char **argv)
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] [hop_size]\n", argv[0]);
return err;
}
@@
-99,5
+94,5
@@
int test_wrong_params(void)
return 1;
del_aubio_onset(o);
- return
0
;
+ return
run_on_default_source(main)
;
}