]> granicus.if.org Git - libvpx/commitdiff
Fix test to call clear system state in convolve_test.
authorJim Bankoski <jimbankoski@google.com>
Fri, 12 Dec 2014 14:18:56 +0000 (06:18 -0800)
committerJim Bankoski <jimbankoski@google.com>
Fri, 12 Dec 2014 14:18:56 +0000 (06:18 -0800)
Assembly tests should clear system state, as we have no
expectation of proper system state in between test runs..

Change-Id: I0f591996c1f17ef2a5a8572a6b445f757223a144

test/convolve_test.cc

index 5dd73dbcb6f2465de58fcbe0535005ba6b6edbc9..e30ccf92e5f8436ec39d5d70b5b41b00e62e5583 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <string.h>
 #include "test/acm_random.h"
+#include "test/clear_system_state.h"
 #include "test/register_state_check.h"
 #include "test/util.h"
 #include "third_party/googletest/src/include/gtest/gtest.h"
@@ -315,6 +316,8 @@ class ConvolveTest : public ::testing::TestWithParam<ConvolveParam> {
 #endif
   }
 
+  virtual void TearDown() { libvpx_test::ClearSystemState(); }
+
   static void TearDownTestCase() {
     vpx_free(input_ - 1);
     input_ = NULL;