test_shell and DRT uses Mesa which doesn't test that case when GL fails to initialize. The first step is to have the tools be able to fail the initialization when running the layout test. The second step is to allow layout test to control that in the script.
Created attachment 70674 [details] patch
Do we want --use-gl or some flag to explicitly toggle whether context initialization fails? This flag doesn't seem to describe what it does very well.
(In reply to comment #2) > Do we want --use-gl or some flag to explicitly toggle whether context initialization fails? This flag doesn't seem to describe what it does very well. I agree, I think it would make more sense to have an explicit flag for testing the case where the GL initialization fails.
what about --no-gl-context?
Comment on attachment 70674 [details] patch Based on comments already in the bug.