A bunch of future tests got invalidated with the latest updates to thread. Fixed the tests.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@131509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2011-05-17 23:32:48 +00:00
parent fead2e2de9
commit 932209b344
17 changed files with 47 additions and 47 deletions

View File

@@ -16,7 +16,7 @@
#include <future>
#include <cassert>
void func1(std::promise<int>& p)
void func1(std::promise<int> p)
{
std::this_thread::sleep_for(std::chrono::milliseconds(500));
p.set_value(3);
@@ -24,14 +24,14 @@ void func1(std::promise<int>& p)
int j = 0;
void func3(std::promise<int&>& p)
void func3(std::promise<int&> p)
{
std::this_thread::sleep_for(std::chrono::milliseconds(500));
j = 5;
p.set_value(j);
}
void func5(std::promise<void>& p)
void func5(std::promise<void> p)
{
std::this_thread::sleep_for(std::chrono::milliseconds(500));
p.set_value();