diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-12-01 12:01:06 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-12-01 15:06:35 +0100 |
commit | b21dba98e3e557eece0497aeea0f0beb70cc62da (patch) | |
tree | b453446812b398d0d6dcafbcc90548b6b689c485 /tests/auto/corelib | |
parent | cea8b5832c56e92aba2b028afc965ddcf384d37b (diff) |
QProperty: Avoid spurious dependencies by suspending binding state
Avoid spurious bindings by resetting the binding state before calling
the setter of eager properties.
Fixes: QTBUG-88999
Pick-to: 6.0
Change-Id: I1e3b5662307d906598335a21d306be9c606529d4
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r-- | tests/auto/corelib/kernel/qproperty/tst_qproperty.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/corelib/kernel/qproperty/tst_qproperty.cpp b/tests/auto/corelib/kernel/qproperty/tst_qproperty.cpp index d824d39941..8145b066da 100644 --- a/tests/auto/corelib/kernel/qproperty/tst_qproperty.cpp +++ b/tests/auto/corelib/kernel/qproperty/tst_qproperty.cpp @@ -1401,7 +1401,6 @@ void tst_QProperty::noFakeDependencies() QCOMPARE(slotCounter, 1); // sanity check int old = bindingFunctionCalled; fdc.setProp3(100); - QEXPECT_FAIL("", "Known to create a spurious dependency", Continue); QCOMPARE(old, bindingFunctionCalled); } |