diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-01-26 17:19:25 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-01-26 17:19:25 +0000 |
commit | cbc433835e4be7b98e143d51f81cf5ba87277980 (patch) | |
tree | d081bb1cbb94cfbf0de6d6a135b1b185844df5ca /vespalib/src/tests/executor | |
parent | 9e7a349315328455d41a8559378c6d5f0ad9e035 (diff) |
GC closures.
Diffstat (limited to 'vespalib/src/tests/executor')
-rw-r--r-- | vespalib/src/tests/executor/executor_test.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
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 <vespa/vespalib/testkit/testapp.h> -#include <vespa/vespalib/util/closuretask.h> #include <vespa/vespalib/util/lambdatask.h> #include <vespa/vespalib/util/executor_stats.h> @@ -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; }); |