Fix strError tests on Mac

This commit is contained in:
Luis Díaz Más 2017-12-17 13:52:47 +01:00
parent 9b463708a4
commit 39377b8c02

View File

@ -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