[FFmpeg-devel] avutil/tests/random_seed: Use 16 instead of 256 iterations for the generic test

Submitted by Michael Niedermayer on Jan. 1, 2017, 5:09 p.m.

Details

Message ID 20170101170939.21288-1-michael@niedermayer.cc
State New
Headers show

Commit Message

Michael Niedermayer Jan. 1, 2017, 5:09 p.m.
The generic test is quite slow and this makes it take 1-2 seconds instead of 20
Considering that the code is not used on any major platform, it makes sense to
test it more throughout on platforms using it but not on every platform.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavutil/tests/random_seed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavutil/tests/random_seed.c b/libavutil/tests/random_seed.c
index 78067dbe41..be2374a2b0 100644
--- a/libavutil/tests/random_seed.c
+++ b/libavutil/tests/random_seed.c
@@ -36,7 +36,7 @@  int main(void)
 
     for (rsf=0; rsf<F; ++rsf){
         for (retry=0; retry<3; retry++){
-            for (i=0; i<N; i++){
+            for (i=0; i<(rsf ? 16 : N); i++){
                 seeds[i] = random_seed[rsf]();
                 for (j=0; j<i; j++)
                     if (seeds[j] == seeds[i])