summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/i965_jpeg_decode_test.cpp4
-rw-r--r--test/i965_jpeg_encode_test.cpp4
-rw-r--r--test/test.h4
3 files changed, 4 insertions, 8 deletions
diff --git a/test/i965_jpeg_decode_test.cpp b/test/i965_jpeg_decode_test.cpp
index b022c2e..6b84625 100644
--- a/test/i965_jpeg_decode_test.cpp
+++ b/test/i965_jpeg_decode_test.cpp
@@ -194,10 +194,6 @@ protected:
PictureData::SharedConst pd;
};
-#define ASSERT_NO_FAILURE(statement) \
- statement; \
- ASSERT_FALSE(HasFailure());
-
TEST_P(FourCCTest, Decode)
{
struct i965_driver_data *i965(*this);
diff --git a/test/i965_jpeg_encode_test.cpp b/test/i965_jpeg_encode_test.cpp
index 08d80c4..80ca1fd 100644
--- a/test/i965_jpeg_encode_test.cpp
+++ b/test/i965_jpeg_encode_test.cpp
@@ -157,10 +157,6 @@ const TestInput::Shared NV12toI420(const TestInput::SharedConst& nv12)
return i420;
}
-#define ASSERT_NO_FAILURE(statement) \
- statement; \
- ASSERT_FALSE(HasFailure());
-
class JPEGEncodeInputTest
: public JPEGEncodeTest
, public ::testing::WithParamInterface<
diff --git a/test/test.h b/test/test.h
index afca9a5..000284a 100644
--- a/test/test.h
+++ b/test/test.h
@@ -66,6 +66,10 @@
#define ASSERT_PTR_NULL(ptr) \
ASSERT_TRUE(NULL == (ptr))
+#define ASSERT_NO_FAILURE(statement) \
+ statement; \
+ ASSERT_FALSE(HasFailure());
+
class VaapiStatus
{
public: