History

Open output files in binary mode in the testsuite

This fixes running tests on windows.

Martin Storsjö committed 12 years ago

Commit 43814001 parent 33a12091 file · +1 −1Browse files

Showing the changes to test/BaseDecoderTest.cpp (1 of 1 file). Show all

Unified · Split

test/BaseDecoderTest.cpp+1−1
@@ -131,7 +131,7 @@ void BaseDecoderTest::DecodeFile(const char* fileName, Callback* cbk) { · 130 unmodified lines
131131
132132 bool BaseDecoderTest::Open(const char* fileName) {
133133 if (decodeStatus_ == OpenFile) {
134− file_.open(fileName);
134+ file_.open(fileName, std::ios_base::out | std::ios_base::binary);
135135 if (file_.is_open()) {
136136 decodeStatus_ = Decoding;
137137 return true;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t