Skip to content

Commit

Permalink
Fixed MinidumpTest.TestMinidumpFromStream opening minidump on Windows.
Browse files Browse the repository at this point in the history
Minidump file needs to be opened as binary.
  • Loading branch information
nmoinvaz committed Dec 29, 2023
1 parent ffb0492 commit ab97981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor/minidump_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ TEST_F(MinidumpTest, TestMinidumpFromFile) {

TEST_F(MinidumpTest, TestMinidumpFromStream) {
// 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());
vector<char> bytes;
file_stream.seekg(0, std::ios_base::end);
Expand Down

0 comments on commit ab97981

Please sign in to comment.