diff --git a/tests/strings/stdstrings.cpp b/tests/strings/stdstrings.cpp index 5c13f9bf44..cf80f2eb5f 100644 --- a/tests/strings/stdstrings.cpp +++ b/tests/strings/stdstrings.cpp @@ -624,7 +624,13 @@ void StdStringTestCase::StdConversion() void StdStringTestCase::StdAlgo() { + // Unfortunately this currently doesn't work with libc++ in C++11 mode, see + // comment near iter_swap() definition in wx/string.h. +#if __cplusplus < 201103L || !defined(_LIBCPP_VERSION) wxString s("AB"); std::reverse(s.begin(), s.end()); CPPUNIT_ASSERT_EQUAL( "BA", s ); +#else + wxLogWarning("Skipping std::reverse() test broken with C++11/libc++"); +#endif }