This fixes running tests on windows.
Showing the changes to test/BaseDecoderTest.cpp (1 of 1 file). Show all
Unified · Split
| @@ -131,7 +131,7 @@ void BaseDecoderTest::DecodeFile(const char* fileName, Callback* cbk) { · 130 unmodified lines | |||
| 131 | 131 | ||
| 132 | bool BaseDecoderTest::Open(const char* fileName) { | 132 | bool BaseDecoderTest::Open(const char* fileName) { |
| 133 | if (decodeStatus_ == OpenFile) { | 133 | if (decodeStatus_ == OpenFile) { |
| 134 | file_.open(fileName); | 134 | file_.open(fileName, std::ios_base::out | std::ios_base::binary); |
| 135 | if (file_.is_open()) { | 135 | if (file_.is_open()) { |
| 136 | decodeStatus_ = Decoding; | 136 | decodeStatus_ = Decoding; |
| 137 | return true; | 137 | return true; |