mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Fix util-test on Windows
This commit is contained in:
parent
a309c4bbed
commit
55a16eaec7
@ -717,7 +717,7 @@ TEST(UtilTest, FormatWindowsError) {
|
|||||||
reinterpret_cast<LPWSTR>(&message), 0, 0);
|
reinterpret_cast<LPWSTR>(&message), 0, 0);
|
||||||
fmt::internal::UTF16ToUTF8 utf8_message(message);
|
fmt::internal::UTF16ToUTF8 utf8_message(message);
|
||||||
LocalFree(message);
|
LocalFree(message);
|
||||||
fmt::Writer actual_message;
|
fmt::MemoryWriter actual_message;
|
||||||
fmt::internal::format_windows_error(
|
fmt::internal::format_windows_error(
|
||||||
actual_message, ERROR_FILE_EXISTS, "test");
|
actual_message, ERROR_FILE_EXISTS, "test");
|
||||||
EXPECT_EQ(fmt::format("test: {}", utf8_message.str()),
|
EXPECT_EQ(fmt::format("test: {}", utf8_message.str()),
|
||||||
|
Loading…
Reference in New Issue
Block a user