From 63bc67b6678213ee362e5e2159cfa07c470f8e83 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 24 Nov 2018 18:03:01 +0100 Subject: [PATCH] [tests] check if tempo creation suceeded --- tests/src/tempo/test-tempo.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.11.0