ref: 8770b0709bd3c06690bb9bfb025da913d1ccd55f
parent: 873fc5b04b25d44d4d4276e7842be0a827ce832b
author: Gregory Maxwell <[email protected]>
date: Tue Mar 6 06:42:40 EST 2012
CLANG IOC no longer likes the 'deterministic random' bitstreams, so move the test_opus_decode bailout up.
--- a/tests/test_opus_decode.c
+++ b/tests/test_opus_decode.c
@@ -193,7 +193,17 @@
}
fprintf(stdout," dec[all] all 2-byte prefix for length 3 and PLC, all modes (64) OK.\n");
+ if(no_fuzz)
{
+ fprintf(stdout," Skipping many tests which fuzz the decoder as requested.\n");
+ for(t=0;t<5*2;t++)opus_decoder_destroy(dec[t]);
+ printf(" Decoders stopped.\n");
+ free(outbuf_int);
+ free(packet);
+ return 0;
+ }
+
+ {
/*We only test a subset of the modes here simply because the longer
durations end up taking a long time.*/
static const int cmodes[4]={16,20,24,28};
@@ -237,16 +247,6 @@
}
if(dec_final_acc!=lres[mode])test_failed();
fprintf(stdout," dec[%3d] all 3-byte prefix for length 4, mode %2d OK.\n",t,lmodes[mode]);
- }
-
- if(no_fuzz)
- {
- fprintf(stdout," Skipping many tests which fuzz the decoder as requested.\n");
- for(t=0;t<5*2;t++)opus_decoder_destroy(dec[t]);
- printf(" Decoders stopped.\n");
- free(outbuf_int);
- free(packet);
- return 0;
}
skip=fast_rand()%7;