Silence warnings and errors when running tests that intentionally produce errors
Merge pull request #1248 from mstorsjo/silence-intentional-errors

Silence warnings and errors when running tests that intentionally produce errors