shithub: aubio

Download patch

ref: f84f6bcee0edbae2abf373fe997e1025e541c5fe
parent: a3d8795535d81fb65948ccac1b0fac0c575e2f8c
author: Paul Brossier <piem@piem.org>
date: Thu Nov 29 11:55:43 EST 2018

[tests] use run_on_default_source in tempo

--- a/tests/src/tempo/test-tempo.c
+++ b/tests/src/tempo/test-tempo.c
@@ -7,14 +7,8 @@
 {
   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 @@
   del_fvec(in);
   del_fvec(out);
 
-  return 0;
+  return run_on_default_source(main);
 }