]> granicus.if.org Git - libvpx/commitdiff
test_intra_pred_speed: add ClearSystemState() call
authorJames Zern <jzern@google.com>
Wed, 10 Jun 2015 19:44:07 +0000 (12:44 -0700)
committerJames Zern <jzern@google.com>
Wed, 10 Jun 2015 19:44:07 +0000 (12:44 -0700)
fixes instability; noticed on mingw

Change-Id: Idef4349339444ec84916e5fcd908ee9633d28aaa

test/test_intra_pred_speed.cc

index cd562dae35c48b1b74bf84e9518b9b06297cc948..f5ae4407b5c6355df6318e633e43470acd1fd6a2 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "./vp9_rtcd.h"
 #include "test/acm_random.h"
+#include "test/clear_system_state.h"
 #include "test/md5_helper.h"
 #include "vpx/vpx_integer.h"
 #include "vpx_ports/mem.h"
@@ -66,6 +67,7 @@ void TestIntraPred(const char name[], VpxPredFunc const *pred_funcs,
     for (int num_tests = 0; num_tests < kNumTests; ++num_tests) {
       pred_funcs[k](src, kBPS, above, left);
     }
+    libvpx_test::ClearSystemState();
     vpx_usec_timer_mark(&timer);
     const int elapsed_time =
         static_cast<int>(vpx_usec_timer_elapsed(&timer) / 1000);