From c2e84ee9cced1d969276cf87c1b857a9aabedcd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vedran=20Mileti=C4=87?= Date: Tue, 2 Jul 2019 23:38:33 +0200 Subject: [PATCH] Fix FormatTest.StrError on Solaris --- test/format-impl-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index 5bde6694..192f48c3 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -192,7 +192,7 @@ TEST(FormatTest, StrError) { EXPECT_EQ(get_system_error(error_code), message); // safe_strerror never uses buffer on MinGW. -#ifndef __MINGW32__ +#if !defined(__MINGW32__) && !defined(__sun) result = fmt::internal::safe_strerror(error_code, message = buffer, message_size); EXPECT_EQ(ERANGE, result);