]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/controls/listctrltest.cpp
don't show assert message boxes in debug build but throw an exception if an assert...
[wxWidgets.git] / tests / controls / listctrltest.cpp
index e6bb46398637db69b6b6cb0c4e144ae87188b98b..8ad9e972a3e7fffb0171cad59f45578490ada1f1 100644 (file)
@@ -170,7 +170,7 @@ void ListCtrlTestCase::ItemRect()
     CPPUNIT_ASSERT( m_list->GetSubItemRect(0, 2, r) );
     CPPUNIT_ASSERT_EQUAL( 40, r.GetWidth() );
 
-    CPPUNIT_ASSERT( !m_list->GetSubItemRect(0, 3, r) );
+    WX_ASSERT_FAILS_WITH_ASSERT( m_list->GetSubItemRect(0, 3, r) );
 }
 
 #endif // wxHAS_LISTCTRL_COLUMN_ORDER