From c746bc15c167bc2a22169c2211fd2e65d9e266f5 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Tue, 28 Feb 2017 10:05:43 -0500 Subject: Add another null check for the Vk NexusPlayer bot That bot has flaky failures creating contexts, and it consistently fails this test. It probably can't create two contexts at the same time. BUG=skia: Change-Id: If6363bff22882378f51281f1cbdac8b3ef510af2 Reviewed-on: https://skia-review.googlesource.com/9067 Reviewed-by: Greg Daniel Commit-Queue: Brian Osman --- tests/GrContextFactoryTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/GrContextFactoryTest.cpp') diff --git a/tests/GrContextFactoryTest.cpp b/tests/GrContextFactoryTest.cpp index b0869d91ed..d4d5667152 100644 --- a/tests/GrContextFactoryTest.cpp +++ b/tests/GrContextFactoryTest.cpp @@ -117,6 +117,10 @@ DEF_GPUTEST(GrContextFactory_sharedContexts, reporter, /*factory*/) { // Create a new base context ContextInfo info3 = testFactory.getContextInfo(ctxType); + if (!info3.grContext()) { + // Vulkan NexusPlayer bot fails here. Sigh. + continue; + } // Creating a context in a share group may fail, but should never crash. ContextInfo info4 = testFactory.getSharedContextInfo(info3.grContext()); -- cgit v1.2.3