From: Paul Brossier Date: Thu, 29 Nov 2018 13:28:39 +0000 (+0100) Subject: [tests] add run_on_default_source to test-source X-Git-Tag: 0.4.9~139^2~21 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=64d534db4359deeb5d75c26d8a3babaa3f5b3b80;p=aubio.git [tests] add run_on_default_source to test-source --- diff --git a/tests/src/io/test-source.c b/tests/src/io/test-source.c index a1f17aeb..55752eac 100644 --- a/tests/src/io/test-source.c +++ b/tests/src/io/test-source.c @@ -5,8 +5,8 @@ int main (int argc, char **argv) { 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 [samplerate] [hop_size]\n", argv[0]); PRINT_MSG("examples:\n");