summaryrefslogtreecommitdiff
path: root/test/intrapred_test.cc
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2013-06-17 22:58:40 -0700
committerJames Zern <jzern@google.com>2013-06-18 11:32:27 -0700
commit5b756748fdb499026a2a2d3c2eb0d70c5a1fdfea (patch)
tree1ce6965f15d017306f507dae138c43f0f552d383 /test/intrapred_test.cc
parentb1caa7c59cca3767c9288f2fcf5da2b3acd834e0 (diff)
downloadlibvpx-5b756748fdb499026a2a2d3c2eb0d70c5a1fdfea.tar
libvpx-5b756748fdb499026a2a2d3c2eb0d70c5a1fdfea.tar.gz
libvpx-5b756748fdb499026a2a2d3c2eb0d70c5a1fdfea.tar.bz2
libvpx-5b756748fdb499026a2a2d3c2eb0d70c5a1fdfea.zip
tests: clear system state after non-API calls
add ClearSystemState() to reset MMX registers avoiding corrupting subsequent tests. Change-Id: I668deb09aa7aa467709776e5819f936910698bc0
Diffstat (limited to 'test/intrapred_test.cc')
-rw-r--r--test/intrapred_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/intrapred_test.cc b/test/intrapred_test.cc
index 149399024..39ec89679 100644
--- a/test/intrapred_test.cc
+++ b/test/intrapred_test.cc
@@ -11,6 +11,7 @@
#include <string.h>
#include "test/acm_random.h"
+#include "test/clear_system_state.h"
#include "test/register_state_check.h"
#include "third_party/googletest/src/include/gtest/gtest.h"
extern "C" {
@@ -25,6 +26,11 @@ namespace {
using libvpx_test::ACMRandom;
class IntraPredBase {
+ public:
+ virtual void TearDown() {
+ libvpx_test::ClearSystemState();
+ }
+
protected:
void SetupMacroblock(uint8_t *data, int block_size, int stride,
int num_planes) {