1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-02-12 17:53:29 +01:00
Commit Graph

1 Commits

Author SHA1 Message Date
Martin Hořeňovský
613e1466f9 Save errno before using sprintf, ifstream.
std::ifstream in libstdc++ contains a bug, where it sets errno to zero.
To work around it, we manually save the errno before using std::ifstream
in debugger check, and reset it after we are done.

We also preventively save errno before using sprintf.

Fixes 
2017-03-06 21:51:22 +01:00