am 0daa2aee: Fix the flakiness of this test by waiting.
* commit '0daa2aee8253301940c8d160f51c3db88e794d0a':
Fix the flakiness of this test by waiting.
diff --git a/tests/tests/opengl/src/android/opengl/cts/ProgramTest.java b/tests/tests/opengl/src/android/opengl/cts/ProgramTest.java
index 85009d2..dab2ef1 100644
--- a/tests/tests/opengl/src/android/opengl/cts/ProgramTest.java
+++ b/tests/tests/opengl/src/android/opengl/cts/ProgramTest.java
@@ -32,7 +32,9 @@
intent.putExtra(OpenGLES20NativeActivityOne.EXTRA_VIEW_TYPE, viewType);
intent.putExtra(OpenGLES20NativeActivityOne.EXTRA_VIEW_INDEX, viewIndex);
setActivityIntent(intent);
- return getActivity();
+ OpenGLES20ActivityOne activity = getActivity();
+ assertTrue(activity.waitForFrameDrawn());
+ return activity;
}
public void test_glAttachShader_program() throws Throwable {