From 58a5e654f94e8e0fda1f3ec1ea596451a3079692 Mon Sep 17 00:00:00 2001 From: Mario Emmenlauer Date: Fri, 7 Feb 2020 17:41:50 +0100 Subject: [PATCH] tests/utils.cpp: Use binary mode for reading test results, to preserve EOL --- tests/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.cpp b/tests/utils.cpp index 255a4fec..cdfdbaca 100644 --- a/tests/utils.cpp +++ b/tests/utils.cpp @@ -21,7 +21,7 @@ void prepare_logdir() std::string file_contents(const std::string &filename) { - std::ifstream ifs(filename); + std::ifstream ifs(filename, std::ios_base::binary); if (!ifs) { throw std::runtime_error("Failed open file ");