Fixed opening minidump on Windows in MinidumpTest.TestMinidumpFromStream
Minidump file needs to be opened as binary. Change-Id: I15f148ec905c9491050b77a77e86e2749da93515 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5160989 Reviewed-by: Sterling Augustine <saugustine@google.com>
This commit is contained in:
parent
898a997855
commit
8e125760dc
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ TEST_F(MinidumpTest, TestMinidumpFromFile) {
|
||||||
|
|
||||||
TEST_F(MinidumpTest, TestMinidumpFromStream) {
|
TEST_F(MinidumpTest, TestMinidumpFromStream) {
|
||||||
// read minidump contents into memory, construct a stringstream around them
|
// read minidump contents into memory, construct a stringstream around them
|
||||||
ifstream file_stream(minidump_file_.c_str(), std::ios::in);
|
ifstream file_stream(minidump_file_.c_str(), std::ios::in | std::ios::binary);
|
||||||
ASSERT_TRUE(file_stream.good());
|
ASSERT_TRUE(file_stream.good());
|
||||||
vector<char> bytes;
|
vector<char> bytes;
|
||||||
file_stream.seekg(0, std::ios_base::end);
|
file_stream.seekg(0, std::ios_base::end);
|
||||||
|
|
Loading…
Reference in a new issue