Fix windows build

This commit is contained in:
Victor Zverovich
2017-02-18 06:29:33 -08:00
parent 87b691d80c
commit e022c21ddc
3 changed files with 23 additions and 20 deletions
+2 -2
View File
@@ -279,11 +279,11 @@ TEST(FileTest, Size) {
EXPECT_GE(f.size(), 0);
EXPECT_EQ(content.size(), static_cast<fmt::ULongLong>(f.size()));
#ifdef _WIN32
fmt::MemoryWriter message;
fmt::internal::MemoryBuffer<char> message;
fmt::internal::format_windows_error(
message, ERROR_ACCESS_DENIED, "cannot get file size");
fstat_sim = ERROR;
EXPECT_THROW_MSG(f.size(), fmt::WindowsError, message.str());
EXPECT_THROW_MSG(f.size(), fmt::WindowsError, fmt::to_string(message));
fstat_sim = NONE;
#else
f.close();