mesa/tests: Add simple, dumb test for _mesa_program_state_string
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Oct 2013 21:01:03 +0000 (14:01 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 22 Oct 2013 22:23:30 +0000 (15:23 -0700)
commit09ceed75872e15b175e362f8d0ea146a8c79ae08
treee168240b3abf179e21fdd7142705940ac6fa9c90
parent98b359bd1b469af3b025a8fab5446aac8ce4c727
mesa/tests: Add simple, dumb test for _mesa_program_state_string

After some discussions about the correct way to update
_mesa_program_state_string, I decided to make a unit test for the
function.  It turns out that the function didn't work quite the way I
thought.  The unit test proves that the code was already correct.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/tests/Makefile.am
src/mesa/main/tests/program_state_string.cpp [new file with mode: 0644]