From d4dd61800a04fbe1c13cd171b2b5b470b7744fce Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 23 Jul 2021 18:45:23 +0200 Subject: [PATCH] Skip test known to fail under macOS < 10.13 --- tests/graphics/clippingbox.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/graphics/clippingbox.cpp b/tests/graphics/clippingbox.cpp index ad1e556a20..6cfdd88cac 100644 --- a/tests/graphics/clippingbox.cpp +++ b/tests/graphics/clippingbox.cpp @@ -3740,7 +3740,16 @@ static void RegionsAndPushPopState(wxScopedPtr& gc, const wxB { // Setting muliple rectangular clipping regions // for transformed wxGC and store/restore them. - +#ifdef __WXOSX__ + if ( !wxCheckOsVersion(10, 13) ) + { + // Due to the bug in resetting clipping region when graphics state + // is pushed on the stack we need to skip test on macOS < 10.13. + WARN("Skipping test known not to work under macOS < 10.13"); + return; + } +#endif + // Get rectangle of the entire drawing area. double x, y, w, h; gc->GetClipBox(&x, &y, &w, &h);