summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2016-09-07 13:43:38 -0700
committerSean V Kelley <seanvk@posteo.de>2016-09-08 15:21:51 -0700
commit79fb9dc1bf10585b3305f4793c2555121f6f1ae9 (patch)
tree3fe5c62625d68f00be1ff6f24a3f9c9d77483c49 /test
parent9d70bdd4087d9886e935cf9efa5f4511ac86600d (diff)
test: skip jpeg fourcc decode test if unsupported by hw
If the hardware does not support jpeg decode, then log this information and return from the test early. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Reviewed-by: Sean V Kelley <seanvk@posteo.de>
Diffstat (limited to 'test')
-rw-r--r--test/i965_jpeg_decode_test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/i965_jpeg_decode_test.cpp b/test/i965_jpeg_decode_test.cpp
index f65aa77..24a30e6 100644
--- a/test/i965_jpeg_decode_test.cpp
+++ b/test/i965_jpeg_decode_test.cpp
@@ -203,6 +203,15 @@ protected:
TEST_P(FourCCTest, Decode)
{
+ struct i965_driver_data *i965(*this);
+ ASSERT_PTR(i965);
+ if (not HAS_JPEG_DECODING(i965)) {
+ RecordProperty("skipped", true);
+ std::cout << "[ SKIPPED ] " << getFullTestName()
+ << " is unsupported on this hardware" << std::endl;
+ return;
+ }
+
VAConfigAttrib a = { type:VAConfigAttribRTFormat, value:pd->format };
ConfigAttribs attribs(1, a);