Catch BAD_MATCH from createWindowSurface
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Tue, 12 Sep 2017 23:11:21 +0000 (17:11 -0600)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Wed, 13 Sep 2017 17:27:59 +0000 (11:27 -0600)
commit7df6c12492c6baf9fdf9a3ea0b7f51e33722a4e8
tree23d47bbe4a260cf22a8e7ffc9fb6e7119700cbe2
parentb446f2dd213eb697e8a968ba13873a15958e0352
Catch BAD_MATCH from createWindowSurface

On some platforms, it's possible to fail createWindowSurface
for some attribute combinations. Catch that case and return
NotSupported rather than a test failure.
Test: adb -d shell am start \
        -n com.drawelements.deqp/android.app.NativeActivity \
        -e cmdLine '"deqp --deqp-case=dEQP-EGL.functional.wide_color.* \
        --deqp-log-filename=/sdcard/dEQP-Log.qpa"'
Bug: 65376495

Change-Id: I6546cbdfc011c7d26cfa3cdad7cc6f0df1b67122
modules/egl/teglWideColorTests.cpp