aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GrContextFactoryTest.cpp
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-02-28 10:05:43 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-28 15:51:37 +0000
commitc746bc15c167bc2a22169c2211fd2e65d9e266f5 (patch)
tree7eeeba49f72e084991c1ece7794e32b3047bd67e /tests/GrContextFactoryTest.cpp
parent2411c1112e7b3cb0126143e4c0a731aff7876dce (diff)
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 <egdaniel@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests/GrContextFactoryTest.cpp')
-rw-r--r--tests/GrContextFactoryTest.cpp4
1 files changed, 4 insertions, 0 deletions
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());