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:28:55 +0000 (11:28 -0600)
commitc6b2df70ee3d8acd4d23da1116edcd6b3e5b26a0
tree5d22ac59a49086c2c3bcf8bf6fb10b63da7d37ac
parent0d4e616c35fd3cbad82eb3c1f0a604dbbc6c8662
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
(cherry picked from commit c35781eb8d47be8ab51b0891d1ab9bb62665488b)
modules/egl/teglWideColorTests.cpp