Skip to content
Permalink
Browse files

Fix some use-after-free issues in task manager test

  • Loading branch information
nyalldawson committed Mar 13, 2020
1 parent ede9e98 commit 3833928ca2734673234b3bf1b0313d75255dfc5d
Showing with 0 additions and 5 deletions.
  1. +0 −5 tests/src/core/testqgstaskmanager.cpp
@@ -1061,7 +1061,6 @@ void TestQgsTaskManager::progressChanged()
}
flushEvents();
QCOMPARE( spy.count(), 6 );
QCOMPARE( task2->progress(), 100.0 );
QCOMPARE( spy.last().at( 0 ).toLongLong(), 2LL );
QCOMPARE( spy.last().at( 1 ).toDouble(), 100.0 );

@@ -1485,11 +1484,7 @@ void TestQgsTaskManager::managerWithSubTasks()
QCOMPARE( statusSpy.last().at( 0 ).toLongLong(), 1LL );
QCOMPARE( static_cast< QgsTask::TaskStatus >( statusSpy.last().at( 1 ).toInt() ), QgsTask::Complete );

subsubTask->finish();
subTask->finish();
parent->finish();
delete manager;

}

void TestQgsTaskManager::managerWithSubTasks2()

0 comments on commit 3833928

Please sign in to comment.
You can’t perform that action at this time.