Permalink
Browse files

Remove unsupported tests of unwrap

* Disable deprecation warnings inside the legacy unwrapped tests
  • Loading branch information...
Naios committed Jul 23, 2017
1 parent 0a50f9c commit 93c55adab09ee43467af5b349f6069a550072f48
Showing with 2 additions and 22 deletions.
  1. +2 −22 tests/unit/util/unwrapped.cpp
@@ -6,6 +6,8 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
////////////////////////////////////////////////////////////////////////////////
#define HPX_NO_DEPRECATE_UNWRAPPED
#include <hpx/hpx_init.hpp>
#include <hpx/include/threads.hpp>
#include <hpx/include/actions.hpp>
@@ -263,28 +265,6 @@ int hpx_main(
HPX_TEST_EQ(unwrapped(&accumulate)(futures), 42 * 64);
}
///////////////////////////////////////////////////////////////////////
// Functional wrapper, tuple of future
{
hpx::util::tuple<future<int>, future<int> > tuple =
hpx::util::forward_as_tuple(
hpx::make_ready_future(42), hpx::make_ready_future(42));
HPX_TEST_EQ(unwrapped(&add)(tuple), 42 + 42);
}
///////////////////////////////////////////////////////////////////////
// Functional wrapper, future of tuple of future
{
hpx::future<
hpx::util::tuple<future<int>, future<int> >
> tuple_future =
hpx::make_ready_future(hpx::util::make_tuple(
hpx::make_ready_future(42), hpx::make_ready_future(42)));
HPX_TEST_EQ(unwrapped2(&add)(tuple_future), 42 + 42);
}
}
return finalize();

0 comments on commit 93c55ad

Please sign in to comment.