OSDN Git Service

libgui: disable CpuConsumer tests
authorJamie Gennis <jgennis@google.com>
Fri, 31 Aug 2012 21:44:50 +0000 (14:44 -0700)
committerJamie Gennis <jgennis@google.com>
Fri, 31 Aug 2012 22:54:21 +0000 (15:54 -0700)
This change disables the CpuConsumer tests because they require a Gralloc
format that is not supported on all devices.

Change-Id: Ifaa618062c1dae53d9fcb9e16ba92c480d3dbd0c

libs/gui/tests/CpuConsumer_test.cpp

index 371fb8b..72a36bf 100644 (file)
@@ -339,7 +339,9 @@ void produceOneFrame(const sp<ANativeWindow>& anw,
     ASSERT_NO_ERROR(err, "queueBuffer error:");
 };
 
-TEST_P(CpuConsumerTest, FromCpuSingle) {
+// This test is disabled because the HAL_PIXEL_FORMAT_RAW_SENSOR format is not
+// supported on all devices.
+TEST_P(CpuConsumerTest, DISABLED_FromCpuSingle) {
     status_t err;
     CpuConsumerTestParams params = GetParam();
 
@@ -371,7 +373,9 @@ TEST_P(CpuConsumerTest, FromCpuSingle) {
     mCC->unlockBuffer(b);
 }
 
-TEST_P(CpuConsumerTest, FromCpuManyInQueue) {
+// This test is disabled because the HAL_PIXEL_FORMAT_RAW_SENSOR format is not
+// supported on all devices.
+TEST_P(CpuConsumerTest, DISABLED_FromCpuManyInQueue) {
     status_t err;
     CpuConsumerTestParams params = GetParam();
 
@@ -412,7 +416,9 @@ TEST_P(CpuConsumerTest, FromCpuManyInQueue) {
     }
 }
 
-TEST_P(CpuConsumerTest, FromCpuLockMax) {
+// This test is disabled because the HAL_PIXEL_FORMAT_RAW_SENSOR format is not
+// supported on all devices.
+TEST_P(CpuConsumerTest, DISABLED_FromCpuLockMax) {
     status_t err;
     CpuConsumerTestParams params = GetParam();