From: Paul Brossier Date: Sat, 24 Nov 2018 17:03:01 +0000 (+0100) Subject: [tests] check if tempo creation suceeded X-Git-Tag: 0.4.9~164^2~6 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=63bc67b6678213ee362e5e2159cfa07c470f8e83;p=aubio.git [tests] check if tempo creation suceeded --- diff --git a/tests/src/tempo/test-tempo.c b/tests/src/tempo/test-tempo.c index 7a878326..94b3767f 100644 --- a/tests/src/tempo/test-tempo.c +++ b/tests/src/tempo/test-tempo.c @@ -32,6 +32,8 @@ int main (int argc, char **argv) // create tempo object aubio_tempo_t * o = new_aubio_tempo("default", win_size, hop_size, samplerate); + if (!o) { err = 1; goto beach_tempo; } + do { // put some fresh data in input vector aubio_source_do(source, in, &read); @@ -53,6 +55,7 @@ int main (int argc, char **argv) // clean up memory del_aubio_tempo(o); +beach_tempo: del_fvec(in); del_fvec(out); del_aubio_source(source);