From: Vadim Zeitlin Date: Thu, 9 May 2013 22:29:13 +0000 (+0000) Subject: Start bisecting GetAs() wxAny test itself. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1f0b3a29102ccebed8d582e73d43b2751118a8c9 Start bisecting GetAs() wxAny test itself. This is the test that results in memory corruption in wxOSX PPC builds, try to find out where exactly does this happen. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/any/anytest.cpp b/tests/any/anytest.cpp index 0bf92c2c94..0e4206a162 100644 --- a/tests/any/anytest.cpp +++ b/tests/any/anytest.cpp @@ -36,12 +36,7 @@ private: CPPUNIT_TEST( CheckType ); CPPUNIT_TEST( Equality ); CPPUNIT_TEST( As ); - // FIXME: One of these tests might result in heap corruption under PPC - // OS X, disable them to at least allow the subsequent tests to - // run as otherwise the test program just crashes. -#ifndef __WXOSX__ CPPUNIT_TEST( GetAs ); -#endif // __WXOSX__ CPPUNIT_TEST( Null ); CPPUNIT_TEST( wxVariantConversions ); CPPUNIT_TEST( CustomTemplateSpecialization ); @@ -364,6 +359,10 @@ void wxAnyTestCase::GetAs() CPPUNIT_ASSERT(!m_anyStringString1.GetAs(&f)); CPPUNIT_ASSERT(!m_anyStringString1.GetAs(&b)); + // FIXME: Something in this test results in heap corruption under PPC + // OS X, disable it to at least allow the subsequent tests to run as + // otherwise the test program just crashes. +#ifndef __WXOSX__ // Let's test some other conversions from string that should work. wxAny anyString; @@ -411,6 +410,7 @@ void wxAnyTestCase::GetAs() res = s.ToDouble(&d2); CPPUNIT_ASSERT(res); CPPUNIT_ASSERT_DOUBLES_EQUAL(d2, TEST_FLOAT_CONST, FEQ_DELTA); +#endif // __WXOSX__ }