From 434e83a192108890d3a5918f84b05f559114a243 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 12 Sep 2014 17:16:22 -0700 Subject: [PATCH] Fix posix-test. --- test/posix-test.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/posix-test.cc b/test/posix-test.cc index 10631177..c3900af3 100644 --- a/test/posix-test.cc +++ b/test/posix-test.cc @@ -34,6 +34,7 @@ #ifdef _WIN32 # include # undef max +# undef ERROR #endif #include "gtest-extra.h" @@ -257,10 +258,11 @@ TEST(FileTest, Size) { f.close(); #ifdef _WIN32 fmt::Writer message; - format_windows_error(message, ERROR_ACCESS_DENIED, "cannot get file size"); + fmt::format_windows_error( + message, ERROR_ACCESS_DENIED, "cannot get file size"); fstat_sim = ERROR; EXPECT_THROW_MSG(f.size(), fmt::WindowsError, message.str()); - fstat_sim = NONE + fstat_sim = NONE; #else EXPECT_SYSTEM_ERROR(f.size(), EBADF, "cannot get file attributes"); #endif