REQUIRE(picture);
//Open file
- ifstream file(TEST_DIR"/test.png");
+ ifstream file(TEST_DIR"/test.png", std::ios::in | std::ios::binary);
REQUIRE(file.is_open());
auto size = sizeof(uint32_t) * (1000*1000);
auto data = (char*)malloc(size);
REQUIRE(picture);
//Open file
- ifstream file(TEST_DIR"/test.jpg");
+ ifstream file(TEST_DIR"/test.jpg", std::ios::in | std::ios::binary);
REQUIRE(file.is_open());
auto begin = file.tellg();
file.seekg(0, std::ios::end);
REQUIRE(picture);
//Open file
- ifstream file(TEST_DIR"/tag.tvg");
+ ifstream file(TEST_DIR"/tag.tvg", std::ios::in | std::ios::binary);
REQUIRE(file.is_open());
auto begin = file.tellg();
file.seekg(0, std::ios::end);