Skip to content

TestTool::init: properly handle SDL::init errors #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2018
Merged

TestTool::init: properly handle SDL::init errors #280

merged 1 commit into from
May 19, 2018

Conversation

pinotree
Copy link
Contributor

@pinotree pinotree commented May 1, 2015

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.

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.
@FROGGS FROGGS merged commit 0f2af3b into PerlGameDev:master May 19, 2018
@pinotree pinotree deleted the init-fix branch May 19, 2018 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants