shithub: aubio

Download patch

ref: 92c85b124cb91b239b40bb970db2af1357772dd2
parent: c631cc08bbeff8c43b69567d6f28571e9db70126
author: Paul Brossier <piem@piem.org>
date: Thu Nov 29 11:58:12 EST 2018

[tests] fail dct tests if reconstruction failed

--- a/tests/src/spectral/test-dct.c
+++ b/tests/src/spectral/test-dct.c
@@ -32,9 +32,7 @@
     aubio_dct_do (dct, in, dctout);
     aubio_dct_rdo (dct, dctout, out);
     for (j = 0; j < in->length; j++) {
-      if (fabsf(in->data[j] - out->data[j]) > 10.e-4) {
-        fprintf(stderr, "dct reconstruction failed\n");
-      }
+      return_code += (fabsf(in->data[j] - out->data[j]) > 10.e-4);
     }
   }