Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4177264 authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter
Browse files

Print "test skipped" for wide-color tests

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
parent d99694bb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
    }