From: Paul Brossier Date: Thu, 29 Nov 2018 15:55:43 +0000 (+0100) Subject: [tests] use run_on_default_source in tempo X-Git-Tag: 0.4.9~139^2~8 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=f84f6bcee0edbae2abf373fe997e1025e541c5fe;p=aubio.git [tests] use run_on_default_source in tempo --- diff --git a/tests/src/tempo/test-tempo.c b/tests/src/tempo/test-tempo.c index 3fbb4cd3..59791524 100644 --- 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 [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); }