Changeset 6200052


Ignore:
Timestamp:
Dec 21, 2018, 4:26:00 PM (7 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, master
Children:
6dc211b
Parents:
8797138
Message:

[tests] try reading after close in test-source.c

Location:
tests/src/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/src/io/base-source_custom.h

    r8797138 r6200052  
    142142  aubio_source_custom_close(s);
    143143
     144  // reading after close fails
     145  del_fvec(vec);
     146  vec = new_fvec(hop_size);
     147  aubio_source_custom_do(s, vec, &read);
     148  del_fmat(mat);
     149  mat = new_fmat(channels, hop_size);
     150  aubio_source_custom_do_multi(s, mat, &read);
     151
    144152  del_aubio_source_custom(s);
    145153  del_fmat(mat);
  • tests/src/io/test-source.c

    r8797138 r6200052  
    138138  aubio_source_close(s);
    139139
     140  // reading after close fails
     141  del_fvec(vec);
     142  vec = new_fvec(hop_size);
     143  aubio_source_do(s, vec, &read);
     144  del_fmat(mat);
     145  mat = new_fmat(channels, hop_size);
     146  aubio_source_do_multi(s, mat, &read);
     147
    140148  del_aubio_source(s);
    141149  del_fmat(mat);
Note: See TracChangeset for help on using the changeset viewer.