PerlGameDev/SDL — pull request #262 by pinotree (2014-05-04 21:25:43+00:00)
Title: TestTool::init: properly handle SDL::init errors

So far TestTool::init was just capturing stdout and stderr of SDL::init, using stderr to check whether SDL::init failed. This, other than being fragile, misses the init errors.

Switch from checking stderr to checking the actual result code of SDL::init.