OSDN Git Service

Print "test skipped" for wide-color tests
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Mon, 10 Jul 2017 22:34:25 +0000 (16:34 -0600)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Wed, 12 Jul 2017 18:12:35 +0000 (12:12 -0600)
Currently if EGL_test is run on non-wide color device the
test will print a status of "PASS". Which is correct, but
not as useful as it could be. Added a diagnostic message
in that case indicating that the device is not wide-color
so that I can tell which path was taken in the tests.
Bug: 63077212
Test: adb shell /data/nativetest/EGL_test/EGL_test

Change-Id: Ic65316893adb4273f3652a3613440ca02001079c

opengl/tests/EGLTest/EGL_test.cpp

index 77d5189..b67a053 100644 (file)
@@ -200,6 +200,7 @@ TEST_F(EGLTest, EGLDisplayP3) {
 
     if (!hasWideColorDisplay) {
         // skip this test if device does not have wide-color display
+        std::cerr << "[          ] Device does not support wide-color, test skipped" << std::endl;
         return;
     }
 
@@ -285,6 +286,7 @@ TEST_F(EGLTest, EGLDisplayP31010102) {
 
     if (!hasWideColorDisplay) {
         // skip this test if device does not have wide-color display
+        std::cerr << "[          ] Device does not support wide-color, test skipped" << std::endl;
         return;
     }
 
@@ -370,6 +372,7 @@ TEST_F(EGLTest, EGLConfigFP16) {
 
     if (!hasWideColorDisplay) {
         // skip this test if device does not have wide-color display
+        std::cerr << "[          ] Device does not support wide-color, test skipped" << std::endl;
         return;
     }
 
@@ -434,6 +437,7 @@ TEST_F(EGLTest, EGLConfigFP16) {
 TEST_F(EGLTest, EGLNoConfigContext) {
     if (!hasWideColorDisplay) {
         // skip this test if device does not have wide-color display
+        std::cerr << "[          ] Device does not support wide-color, test skipped" << std::endl;
         return;
     }
 
@@ -471,6 +475,7 @@ TEST_F(EGLTest, EGLConfig1010102) {
 
     if (!hasWideColorDisplay) {
         // skip this test if device does not have wide-color display
+        std::cerr << "[          ] Device does not support wide-color, test skipped" << std::endl;
         return;
     }