Check context result in layout tests.
This CL adds a check when initializing the ContextProvider for layout tests. We should retry the on transient failures but just crash for fatal failures. There is no compositing mode fallback in layout tests for simplicity, so we can't do much other than crash here. The reason for this change is that ClusterFuzz was picking up access to some uninitialized data in some vaguely related code. This happens because there is a fatal failure in CreateDisplayOutputSurface() that is ignored. The crash stack should now pinpoint exactly where the failure was and make problems easier to diagnose. Bug: 817758 Change-Id: I766c0526e0e2c01d16be922f78de1b89365ae401 Reviewed-on: https://chromium-review.googlesource.com/980653Reviewed-by:Antoine Labour <piman@chromium.org> Commit-Queue: kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#546085}
Showing
Please register or sign in to comment