mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Fix util-test on Windows, take 2
This commit is contained in:
parent
55a16eaec7
commit
810f42c0c7
@ -638,7 +638,7 @@ TEST(UtilTest, UTF8ToUTF16) {
|
||||
|
||||
template <typename Converter>
|
||||
void check_utf_conversion_error(const char *message) {
|
||||
fmt::Writer out;
|
||||
fmt::MemoryWriter out;
|
||||
fmt::internal::format_windows_error(out, ERROR_INVALID_PARAMETER, message);
|
||||
fmt::SystemError error(0, "");
|
||||
try {
|
||||
@ -735,7 +735,7 @@ TEST(UtilTest, WindowsError) {
|
||||
}
|
||||
|
||||
TEST(UtilTest, ReportWindowsError) {
|
||||
fmt::Writer out;
|
||||
fmt::MemoryWriter out;
|
||||
fmt::internal::format_windows_error(out, ERROR_FILE_EXISTS, "test error");
|
||||
out << '\n';
|
||||
EXPECT_WRITE(stderr,
|
||||
|
Loading…
Reference in New Issue
Block a user