shithub: aubio

Download patch

ref: 1b3edc67772a3d8e26013a2184bcbf67476a85a4
parent: b0d4c788e02df0fec3ca20efd90e942050c4ba01
author: Paul Brossier <piem@piem.org>
date: Thu Nov 29 11:14:05 EST 2018

[tests] also use run_on_default_source in onset

--- a/tests/src/onset/test-onset.c
+++ b/tests/src/onset/test-onset.c
@@ -9,12 +9,7 @@
   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 @@
     return 1;
   del_aubio_onset(o);
 
-  return 0;
+  return run_on_default_source(main);
 }