Skip to content

Commit

Permalink
Fix findend regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhekemist committed Aug 21, 2024
1 parent 5a2d965 commit 46a4883
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libs/core/algorithms/tests/regressions/minimal_findend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <cstddef>
#include <iterator>
#include <string>
#include <utility>
#include <vector>

namespace test {
Expand Down Expand Up @@ -69,11 +70,12 @@ void find_end_failing_test()
bool caught_exception = false;
try
{
std::find_end(decorated_iterator(std::begin(c),
[]() { throw std::runtime_error("error"); }),
decorated_iterator(
std::end(c), []() { throw std::runtime_error("error"); }),
std::begin(h), std::end(h));
std::ignore =
std::find_end(decorated_iterator(std::begin(c),
[]() { throw std::runtime_error("error"); }),
decorated_iterator(
std::end(c), []() { throw std::runtime_error("error"); }),
std::begin(h), std::end(h));

// should never reach this point
HPX_TEST(false);
Expand Down

0 comments on commit 46a4883

Please sign in to comment.