]> git.saurik.com Git - wxWidgets.git/commitdiff
disable a test failing under wxGTK because of what appears to be a Pango limitation
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 May 2009 14:12:28 +0000 (14:12 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 17 May 2009 14:12:28 +0000 (14:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/font/fonttest.cpp

index 5f2c171c7f783633083f171758362c24895514de..7ba623bd55706cce0a1f87633b3784711f3b55e1 100644 (file)
@@ -206,7 +206,14 @@ void FontTestCase::NativeFontInfo()
     // test that clearly invalid font info strings do not work
     wxFont font;
     CPPUNIT_ASSERT( !font.SetNativeFontInfo("") );
+
+    // pango_font_description_from_string() used by wxFont in wxGTK and wxX11
+    // never returns an error at all so this assertion fails there -- and as it
+    // doesn't seem to be possible to do anything about it maybe we should
+    // change wxMSW and other ports to also accept any strings?
+#if !defined(__WXGTK__) && !defined(__WXX11__)
     CPPUNIT_ASSERT( !font.SetNativeFontInfo("bloordyblop") );
+#endif
 }
 
 void FontTestCase::NativeFontInfoUserDesc()