Fix strError tests on Mac
This commit is contained in:
parent
9b463708a4
commit
39377b8c02
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user