From: Vadim Zeitlin Date: Tue, 24 Nov 2009 00:01:51 +0000 (+0000) Subject: Make the assert in SettingsTestCase::GlobalFonts() more informative. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/009f89f75dc5803327723039b2deeba18a6228bb Make the assert in SettingsTestCase::GlobalFonts() more informative. Show the index of the font and the face name which was invalid. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/misc/settings.cpp b/tests/misc/settings.cpp index 0c01100932..09174d2888 100644 --- a/tests/misc/settings.cpp +++ b/tests/misc/settings.cpp @@ -120,7 +120,12 @@ void SettingsTestCase::GlobalFonts() const wxString facename = font[i].GetFaceName(); if ( !facename.empty() ) - CPPUNIT_ASSERT( wxFontEnumerator::IsValidFacename(facename) ); + { + WX_ASSERT_MESSAGE( + ("font #%u: facename \"%s\" is invalid", i, facename), + wxFontEnumerator::IsValidFacename(facename) + ); + } } }