Skip to content

Commit

Permalink
test retraction
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarneges committed Feb 21, 2025
1 parent 9a83991 commit b47ede4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/core/defercalltest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ private slots:
QVERIFY(second);
}

void retract()
{
bool called = false;

{
DeferCall deferCall;

deferCall.defer([&] {
called = true;
});
}

DeferCall::cleanup();
QVERIFY(!called);
}

void managerCleanup()
{
bool first = false;
Expand Down

0 comments on commit b47ede4

Please sign in to comment.