diff --git a/tests/controls/bitmapcomboboxtest.cpp b/tests/controls/bitmapcomboboxtest.cpp index 98c76d2300..517388d211 100644 --- a/tests/controls/bitmapcomboboxtest.cpp +++ b/tests/controls/bitmapcomboboxtest.cpp @@ -59,6 +59,19 @@ private: void Bitmap(); +#ifdef __WXGTK__ + virtual void SimSelect() + { + // There is an inexplicable and locally irreproducible failure in this + // test for wxBitmapComboBox when it runs on the Linux buildbot slaves: + // wxUIActionSimulator::Select() fails there for some reason, so skip + // the test. If you ever manage to reproduce this locally, please try + // to debug it to understand what goes on! + if ( !IsAutomaticTest() ) + ItemContainerTestCase::SimSelect(); + } +#endif // __WXGTK__ + wxBitmapComboBox *m_combo; DECLARE_NO_COPY_CLASS(BitmapComboBoxTestCase) diff --git a/tests/controls/itemcontainertest.h b/tests/controls/itemcontainertest.h index 5d4ea0bc37..32853f2c86 100644 --- a/tests/controls/itemcontainertest.h +++ b/tests/controls/itemcontainertest.h @@ -52,7 +52,7 @@ protected: void Set(); void SetSelection(); void SetString(); - void SimSelect(); + virtual void SimSelect(); private: wxDECLARE_NO_COPY_CLASS(ItemContainerTestCase);