Add IsAutomaticTest() function to the unit tests.
This allows to easily test if we're running on a buildbot slave and disable some difficult to debug test failures there. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -181,11 +181,13 @@ void ListBaseTestCase::ItemClick()
|
||||
// generic wxListCtrl implementation.
|
||||
#if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__)
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// FIXME: This test fails on MSW buildbot slaves although works fine on
|
||||
// development machine, no idea why. It seems to be a problem with
|
||||
// wxUIActionSimulator rather the wxListCtrl control itself however.
|
||||
if ( wxGetUserId().Lower().Matches("buildslave*") )
|
||||
if ( IsAutomaticTest() )
|
||||
return;
|
||||
#endif // __WXMSW__
|
||||
|
||||
wxListCtrl* const list = GetList();
|
||||
|
||||
|
Reference in New Issue
Block a user