Fix invalid error code in eglWaitNative() negative tests.
authorJarkko Pöyry <jpoyry@google.com>
Tue, 23 Jun 2015 18:10:46 +0000 (11:10 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Tue, 23 Jun 2015 18:10:46 +0000 (11:10 -0700)
Bug: 20178024
Change-Id: Ie4fd705f40bab54912339b8b892d2e09f2b2e79b

modules/egl/teglNegativeApiTests.cpp

index 98e3f94..c2b7ebc 100644 (file)
@@ -1362,7 +1362,7 @@ void NegativeApiTests::init (void)
                                log << TestLog::Section("Test1", "EGL_BAD_PARAMETER is generated if engine is not a recognized marking engine and native rendering is supported by current surface");
 
                                eglWaitNative(-1);
-                               expectEitherError(EGL_BAD_PARAMETER, EGL_NONE);
+                               expectEitherError(EGL_BAD_PARAMETER, EGL_SUCCESS);
 
                                log << TestLog::EndSection;