mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
tests/utils.cpp: Use binary mode for reading test results, to preserve EOL
This commit is contained in:
parent
966d827d35
commit
58a5e654f9
@ -21,7 +21,7 @@ void prepare_logdir()
|
|||||||
|
|
||||||
std::string file_contents(const std::string &filename)
|
std::string file_contents(const std::string &filename)
|
||||||
{
|
{
|
||||||
std::ifstream ifs(filename);
|
std::ifstream ifs(filename, std::ios_base::binary);
|
||||||
if (!ifs)
|
if (!ifs)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Failed open file ");
|
throw std::runtime_error("Failed open file ");
|
||||||
|
Loading…
Reference in New Issue
Block a user