diff options
| author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2024-02-26 15:11:25 +0100 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-03-07 02:07:53 +0000 |
| commit | 0a110f64ff0686afc3fd4f70da967b285df46c06 (patch) | |
| tree | 89e823620f1d61735af2cecf97ba3ee0eeb23246 | |
| parent | 4afb76ae0ee1ae7a4297ad8495e17178d95d4338 (diff) | |
Baseline scenegraph test: avoid rendering blacklisted items
Employ the new functionality in the baseline framework that
facilitates skipping blacklisted items prior to rendering. Useful if
rendering certain scenes cause crashes on some platforms.
Pick-to: 6.5 6.2
Change-Id: I9f545751bff66eac548fdac8212f0ade4df7b6de
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
(cherry picked from commit 4ca19bab7eeaa3734a315db236d493e936002be5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 22936a7c0a1fdd5231408455e61941eb10e2148d)
| -rw-r--r-- | tests/baseline/scenegraph/scenegraph/tst_baseline_scenegraph.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/baseline/scenegraph/scenegraph/tst_baseline_scenegraph.cpp b/tests/baseline/scenegraph/scenegraph/tst_baseline_scenegraph.cpp index 32dc342570..febc74fb55 100644 --- a/tests/baseline/scenegraph/scenegraph/tst_baseline_scenegraph.cpp +++ b/tests/baseline/scenegraph/scenegraph/tst_baseline_scenegraph.cpp @@ -32,6 +32,7 @@ public: private Q_SLOTS: void initTestCase(); + void init(); void cleanup(); #ifdef TEXTLESS_TEST void testNoTextRendering_data(); @@ -102,6 +103,11 @@ void tst_Scenegraph::initTestCase() QSKIP(msg); } +void tst_Scenegraph::init() +{ + // This gets called for every row. QSKIP if current item is blacklisted on the baseline server: + QBASELINE_SKIP_IF_BLACKLISTED; +} void tst_Scenegraph::cleanup() { |
