Commit 14fc83b6 by Jamie Madill Committed by Kenneth Russell

Fix EGLQueryContextTest.

BUG=466704 Change-Id: I6d87d6cd155fea347cac50b6cb5d1f9641f23e4a Reviewed-on: https://chromium-review.googlesource.com/259761Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org>
parent 4f52da4a
......@@ -124,9 +124,13 @@ TEST_F(EGLQueryContextTestES2, BadDisplay)
TEST_F(EGLQueryContextTestES2, NotInitialized)
{
EGLint val;
eglTerminate(mDisplay);
TearDown();
EXPECT_TRUE(eglQueryContext(mDisplay, mContext, EGL_CONTEXT_CLIENT_TYPE, &val) == EGL_FALSE);
EXPECT_TRUE(eglGetError() == EGL_NOT_INITIALIZED);
mDisplay = EGL_NO_DISPLAY;
mSurface = EGL_NO_SURFACE;
mContext = EGL_NO_CONTEXT;
}
TEST_F(EGLQueryContextTestES2, BadContext)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment