Testing tools improvements (no impact on draft)

This commit is contained in:
Gregory Maxwell 2011-11-25 23:53:15 -05:00 committed by Jean-Marc Valin
parent 10ebc02ecf
commit e699c1989c
6 changed files with 44 additions and 11 deletions

View file

@ -92,8 +92,8 @@ opus_int32 test_dec_api(void)
#endif
short sbuf[960*2];
int c,err;
int *nullptr;
nullptr=0;
int *nullvalue;
nullvalue=0;
cfgs=0;
/*First test invalid configurations which should fail*/
@ -163,7 +163,7 @@ opus_int32 test_dec_api(void)
cfgs++;
/*GET_PITCH has different execution paths depending on the previously decoded frame.*/
err=opus_decoder_ctl(dec, OPUS_GET_PITCH(nullptr));
err=opus_decoder_ctl(dec, OPUS_GET_PITCH(nullvalue));
if(err!=OPUS_BAD_ARG)test_failed();
cfgs++;
VG_UNDEF(&i,sizeof(i));
@ -297,8 +297,11 @@ opus_int32 test_msdec_api(void)
#endif
short sbuf[960*2];
int a,b,c,err;
int *nullptr;
nullptr=0;
#if 0
/*Relevant test not enabled for multistream*/
int *nullvalue;
nullvalue=0;
#endif
cfgs=0;
/*First test invalid configurations which should fail*/
@ -414,7 +417,7 @@ opus_int32 test_msdec_api(void)
fprintf(stdout," OPUS_GET_BANDWIDTH ........................... OK.\n");
cfgs++;
/*GET_PITCH has different execution paths depending on the previously decoded frame.*/
err=opus_multistream_decoder_ctl(dec, OPUS_GET_PITCH(nullptr));
err=opus_multistream_decoder_ctl(dec, OPUS_GET_PITCH(nullvalue));
if(err!=OPUS_BAD_ARG)test_failed();
cfgs++;
VG_UNDEF(&i,sizeof(i));