summaryrefslogtreecommitdiffstats
path: root/async/autotests/asynctest.cpp
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2015-04-03 16:34:05 +0200
committerDan Vrátil <dvratil@redhat.com>2015-04-04 20:44:17 +0200
commit9d0a8497f9693bccdd1c031104ea5837dc62e4ee (patch)
treed290a4a7970316dca9673db1f78609501798738d /async/autotests/asynctest.cpp
parentffdbd257bc4b13132b10f60d9ab70759e1f259bd (diff)
downloadsink-9d0a8497f9693bccdd1c031104ea5837dc62e4ee.tar.gz
sink-9d0a8497f9693bccdd1c031104ea5837dc62e4ee.zip
Async: fix crash in Job::nestedJobWrapper
Diffstat (limited to 'async/autotests/asynctest.cpp')
-rw-r--r--async/autotests/asynctest.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/async/autotests/asynctest.cpp b/async/autotests/asynctest.cpp
index c507721..61ab8bc 100644
--- a/async/autotests/asynctest.cpp
+++ b/async/autotests/asynctest.cpp
@@ -340,8 +340,6 @@ void AsyncTest::testSyncEach()
340 340
341void AsyncTest::testJoinedEach() 341void AsyncTest::testJoinedEach()
342{ 342{
343 QFAIL("Crashes due to bad lifetime of Future");
344
345 auto job1 = Async::start<QList<int>, int>( 343 auto job1 = Async::start<QList<int>, int>(
346 [](int v, Async::Future<QList<int>> &future) { 344 [](int v, Async::Future<QList<int>> &future) {
347 new AsyncSimulator<QList<int>>(future, { v * 2 }); 345 new AsyncSimulator<QList<int>>(future, { v * 2 });