diff options
author | Brian Osman <brianosman@google.com> | 2017-02-28 10:05:43 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-28 15:51:37 +0000 |
commit | c746bc15c167bc2a22169c2211fd2e65d9e266f5 (patch) | |
tree | 7eeeba49f72e084991c1ece7794e32b3047bd67e /tests | |
parent | 2411c1112e7b3cb0126143e4c0a731aff7876dce (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')
-rw-r--r-- | tests/GrContextFactoryTest.cpp | 4 |
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()); |