shithub: aubio

Download patch

ref: 64d534db4359deeb5d75c26d8a3babaa3f5b3b80
parent: c6bb567a67fee7a2933abeea276ee904d555921c
author: Paul Brossier <piem@piem.org>
date: Thu Nov 29 09:28:39 EST 2018

[tests] add run_on_default_source to test-source

--- a/tests/src/io/test-source.c
+++ b/tests/src/io/test-source.c
@@ -5,8 +5,8 @@
 {
   uint_t err = 0;
   if (argc < 2) {
-    err = 2;
-    PRINT_ERR("not enough arguments\n");
+    PRINT_ERR("not enough arguments, running tests\n");
+    err = run_on_default_source(main);
     PRINT_MSG("read a wave file as a mono vector\n");
     PRINT_MSG("usage: %s <source_path> [samplerate] [hop_size]\n", argv[0]);
     PRINT_MSG("examples:\n");