Skip to content

Commit c2e84ee

Browse files
vedranmileticvitaut
authored andcommitted
Fix FormatTest.StrError on Solaris
1 parent 2711cb1 commit c2e84ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/format-impl-test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ TEST(FormatTest, StrError) {
192192
EXPECT_EQ(get_system_error(error_code), message);
193193

194194
// safe_strerror never uses buffer on MinGW.
195-
#ifndef __MINGW32__
195+
#if !defined(__MINGW32__) && !defined(__sun)
196196
result =
197197
fmt::internal::safe_strerror(error_code, message = buffer, message_size);
198198
EXPECT_EQ(ERANGE, result);

0 commit comments

Comments
 (0)