glx/tests: Add unit tests for the GLX part of GLX_MESA_query_renderer
authorIan Romanick <ian.d.romanick@intel.com>
Sun, 17 Feb 2013 21:53:19 +0000 (13:53 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Nov 2013 02:12:33 +0000 (18:12 -0800)
commit0cce5538673148ffcd7aa9479f6b88cf9a641352
tree568867a00ed6b47da0611d7594c64d1f8a5b90aa
parentd4cc1869374c93ef82db5298e9a3941c69e61831
glx/tests: Add unit tests for the GLX part of GLX_MESA_query_renderer

These tests primarilly ensure that the functions added by this extension
don't abuse other interfaces (e.g., glx_screen::query_renderer_integer)
when provided bad data.

These tests helped me find a couple small bugs in the initial
implementation.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/tests/Makefile.am
src/glx/tests/fake_glx_screen.cpp
src/glx/tests/query_renderer_unittest.cpp [new file with mode: 0644]