From 39377b8c02826d2fe3aa61ad13b9c655c882e62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Sun, 17 Dec 2017 13:52:47 +0100 Subject: [PATCH] Fix strError tests on Mac --- unitTests/test_futils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unitTests/test_futils.cpp b/unitTests/test_futils.cpp index 7e751ebb..ffde578b 100644 --- a/unitTests/test_futils.cpp +++ b/unitTests/test_futils.cpp @@ -17,6 +17,8 @@ TEST(strError, returnSuccessAfterClosingFile) auxFile.close(); #ifdef _WIN32 const char * expectedString = "No error (errno = 0)"; +#elif __APPLE__ + const char * expectedString = "Undefined error: 0 (errno = 0)"; #else const char * expectedString = "Success (errno = 0)"; #endif @@ -36,6 +38,8 @@ TEST(strError, doNotRecognizeUnknownError) errno = 9999; #ifdef _WIN32 const char * expectedString = "Unknown error (errno = 9999)"; +#elif __APPLE__ + const char * expectedString = "Unknown error: 9999 (errno = 9999)"; #else const char * expectedString = "Unknown error 9999 (errno = 9999)"; #endif