Skip the recently added wxString test broken with libc++

This should have been part of 90eaa1bbe3 and
should finally really fix the build with libc++ after the changes of
14ec2691f6.
This commit is contained in:
Vadim Zeitlin 2016-07-16 01:46:45 +02:00
parent 2821d68a73
commit fe2052fb35

View File

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