Terminate test process after first OOM in compute_interop tests.
authorJarkko Pöyry <jpoyry@google.com>
Fri, 30 Jan 2015 00:19:14 +0000 (16:19 -0800)
committerJarkko Poyry <jpoyry@google.com>
Fri, 30 Jan 2015 20:10:05 +0000 (20:10 +0000)
Bug: 19197749
Change-Id: I30eff574ba699b1ee3d28c8fa4c85a5ceea146c1

modules/gles31/functional/es31fDrawTests.cpp

index 7f28d98..89d904a 100644 (file)
@@ -1179,6 +1179,7 @@ ComputeShaderGeneratedCase::IterateResult ComputeShaderGeneratedCase::iterate (v
        {
                m_testCtx.getLog() << tcu::TestLog::Message << "Got GL_OUT_OF_MEMORY." << tcu::TestLog::EndMessage;
                m_testCtx.setTestResult(QP_TEST_RESULT_NOT_SUPPORTED, "Got GL_OUT_OF_MEMORY");
+               m_testCtx.setTerminateAfter(true); // Do not rely on implementation to be able to recover from OOM
                return STOP;
        }