ref: 9881484dbde25707b93d988cff6316d2f375727a
parent: 28b41ae5ae1acf6eb222858567952564838d48f5
author: Gregory Maxwell <greg@xiph.org>
date: Tue Jul 10 22:18:44 EDT 2012
test_opus_api: Fix valgrind expectations broken by last commit. The last commit changed some of the multistream tests to use a dual-mono setup instead of a single-stereo setup. Some of the accompanying explicit valgrind checks were still setup to look for stereo streams.
--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -422,6 +422,7 @@
cfgs++;
err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(1,&streamdec));
if(err!=OPUS_OK||streamdec==NULL)test_failed();
+ VG_CHECK(streamdec,opus_decoder_get_size(1));
cfgs++;
err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(2,&streamdec));
if(err!=OPUS_BAD_ARG)test_failed();
@@ -428,7 +429,7 @@
cfgs++;
err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(0,&streamdec));
if(err!=OPUS_OK||streamdec==NULL)test_failed();
- VG_CHECK(streamdec,opus_decoder_get_size(2));
+ VG_CHECK(streamdec,opus_decoder_get_size(1));
fprintf(stdout," OPUS_MULTISTREAM_GET_DECODER_STATE ........... OK.\n");
cfgs++;