diff options
author | Jean-Marc Valin <jmvalin@amazon.com> | 2022-07-22 02:53:39 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@amazon.com> | 2022-07-22 02:56:58 -0400 |
commit | 15c7f621550ddeb37f123332d7698a89dff490a5 (patch) | |
tree | 37d0e6f223c6e81678de4e1fc2dca0f894ceb87f | |
parent | 1ade672a0c039e19d18febc7cc78549225141dc4 (diff) | |
download | opus-15c7f621550ddeb37f123332d7698a89dff490a5.tar.gz |
Ensuring we can see where crashes occurexp_ubsan1
-rw-r--r-- | tests/test_opus_encode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c index 00795a1e..d6e8e2d3 100644 --- a/tests/test_opus_encode.c +++ b/tests/test_opus_encode.c @@ -297,6 +297,7 @@ int run_test1(int no_fuzz) /*FIXME: encoder api tests, fs!=48k, mono, VBR*/ fprintf(stdout," Encode+Decode tests.\n"); + fflush(stdout); enc = opus_encoder_create(48000, 2, OPUS_APPLICATION_VOIP, &err); if(err != OPUS_OK || enc==NULL)test_failed(); @@ -466,6 +467,7 @@ int run_test1(int no_fuzz) count++; }while(i<(SSAMPLES-MAX_FRAME_SAMP)); fprintf(stdout," Mode %s FB encode %s, %6d bps OK.\n",mstrings[modes[j]],rc==0?" VBR":rc==1?"CVBR":" CBR",rate); + fflush(stdout); } } @@ -543,6 +545,7 @@ int run_test1(int no_fuzz) count++; }while(i<(SSAMPLES/12-MAX_FRAME_SAMP)); fprintf(stdout," Mode %s NB dual-mono MS encode %s, %6d bps OK.\n",mstrings[modes[j]],rc==0?" VBR":rc==1?"CVBR":" CBR",rate); + fflush(stdout); } } @@ -612,6 +615,7 @@ int run_test1(int no_fuzz) i+=frame_size; }while(i<SAMPLES*4); fprintf(stdout," All framesize pairs switching encode, %d frames OK.\n",count); + fflush(stdout); if(opus_encoder_ctl(enc, OPUS_RESET_STATE)!=OPUS_OK)test_failed(); opus_encoder_destroy(enc); |