diff --git a/tests/controls/gridtest.cpp b/tests/controls/gridtest.cpp index 7ad8b9bb8c..391356975b 100644 --- a/tests/controls/gridtest.cpp +++ b/tests/controls/gridtest.cpp @@ -806,9 +806,17 @@ TEST_CASE_METHOD(GridTestCase, "Grid::Size", "[grid]") sim.MouseDragDrop(pt.x, pt.y, pt.x, pt.y + 50); - WaitFor("mouse drag to be processed", [&]() { - return rowsize.GetCount() != 0; - }); + if ( !WaitFor("mouse drag to be processed", [&]() { + return rowsize.GetCount() != 0; + }) ) + { +#ifdef wxHAS_QT5 + WARN("Ignoring known test failure under Qt5: column resize " + "event not received (column width is " + << m_grid->GetColSize(0) << ")"); + return; +#endif // wxHAS_QT5 + } CHECK(rowsize.GetCount() == 1); #endif