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.