summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/ThreadPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/ThreadPool.cpp')
-rw-r--r--llvm/unittests/Support/ThreadPool.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/unittests/Support/ThreadPool.cpp b/llvm/unittests/Support/ThreadPool.cpp
index 8e03aacfb1e..bb972f7daa9 100644
--- a/llvm/unittests/Support/ThreadPool.cpp
+++ b/llvm/unittests/Support/ThreadPool.cpp
@@ -131,22 +131,6 @@ TEST_F(ThreadPoolTest, Async) {
ASSERT_EQ(2, i.load());
}
-TEST_F(ThreadPoolTest, GetFuture) {
- CHECK_UNSUPPORTED();
- ThreadPool Pool{2};
- std::atomic_int i{0};
- Pool.async([this, &i] {
- waitForMainThread();
- ++i;
- });
- // Force the future using get()
- Pool.async([&i] { ++i; }).get();
- ASSERT_NE(2, i.load());
- setMainThreadReady();
- Pool.wait();
- ASSERT_EQ(2, i.load());
-}
-
TEST_F(ThreadPoolTest, PoolDestruction) {
CHECK_UNSUPPORTED();
// Test that we are waiting on destruction
OpenPOWER on IntegriCloud