From 8770b0709bd3c06690bb9bfb025da913d1ccd55f Mon Sep 17 00:00:00 2001 From: Gregory Maxwell <greg@xiph.org> Date: Tue, 6 Mar 2012 11:42:40 -0500 Subject: [PATCH] CLANG IOC no longer likes the 'deterministic random' bitstreams, so move the test_opus_decode bailout up. --- tests/test_opus_decode.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c index 8f37ddc00..5bef49d80 100644 --- a/tests/test_opus_decode.c +++ b/tests/test_opus_decode.c @@ -193,6 +193,16 @@ int test_decoder_code0(int no_fuzz) } 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.*/ @@ -239,16 +249,6 @@ int test_decoder_code0(int no_fuzz) 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; for(i=0;i<64;i++) { -- GitLab