From cbc433835e4be7b98e143d51f81cf5ba87277980 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 26 Jan 2021 17:19:25 +0000 Subject: GC closures. --- vespalib/src/tests/executor/executor_test.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'vespalib/src/tests/executor') diff --git a/vespalib/src/tests/executor/executor_test.cpp b/vespalib/src/tests/executor/executor_test.cpp index 942b425be72..f6d3a4b5e1d 100644 --- a/vespalib/src/tests/executor/executor_test.cpp +++ b/vespalib/src/tests/executor/executor_test.cpp @@ -1,7 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include -#include #include #include @@ -9,14 +8,6 @@ using namespace vespalib; void setBool(bool *b) { *b = true; } -TEST("require that closures can be wrapped as tasks") { - bool called = false; - Executor::Task::UP task = makeTask(makeClosure(setBool, &called)); - EXPECT_TRUE(!called); - task->run(); - EXPECT_TRUE(called); -} - TEST("require that lambdas can be wrapped as tasks") { bool called = false; Executor::Task::UP task = makeLambdaTask([&called]() { called = true; }); -- cgit v1.2.3