Skip test which work locally, but not when run on GitHub CI under wxQt

This commit is contained in:
ali kettab 2023-10-09 18:15:45 +01:00
parent 15937ccb3d
commit 1f606cd925

View file

@ -159,6 +159,11 @@ TEST_CASE("wxDC::GetPartialTextExtent", "[dc][text-extent][partial]")
REQUIRE( dc.GetPartialTextExtents("Hello", widths) );
REQUIRE( widths.size() == 5 );
CHECK( widths[0] == dc.GetTextExtent("H").x );
#ifdef __WXQT__
// Skip test which work locally, but not when run on GitHub CI
if ( IsAutomaticTest() )
return;
#endif
CHECK( widths[4] == dc.GetTextExtent("Hello").x );
}