Changeset 2cf905f for tests


Ignore:
Timestamp:
Nov 29, 2018, 6:49:32 PM (11 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
8968ea7
Parents:
f9204ac
Message:

[tests] onset creation may succeed with non-power of two sizes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/onset/test-onset.c

    rf9204ac r2cf905f  
    8585  if (new_aubio_onset("abcd", win_size, win_size/2, samplerate))
    8686    return 1;
    87   // pv creation failed
    88   if (new_aubio_onset("default", 5, 2, samplerate))
    89     return 1;
    9087
    9188  aubio_onset_t *o;
     89
     90  // pv creation might fail
     91  o = new_aubio_onset("default", 5, 2, samplerate);
     92  if (o) del_aubio_onset(o);
     93
    9294  o = new_aubio_onset("default", win_size, hop_size, samplerate);
    9395  if (!aubio_onset_set_default_parameters(o, "wrong_type"))
Note: See TracChangeset for help on using the changeset viewer.