libstdc++: Fix invalid order in PSTL inplace_merge test [PR90276]
This looks like a typo in the upstream test that causes a failure in debug mode. It has been reported upstream. libstdc++-v3/ChangeLog: PR libstdc++/90276 * testsuite/25_algorithms/pstl/alg_merge/inplace_merge.cc: Fix comparison function to use less-than instead of equality.
This commit is contained in:
parent
723a7c1ad2
commit
a6286584e5
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ main()
|
|||
test_by_type<MemoryChecker>(
|
||||
[](std::size_t idx){ return MemoryChecker{std::int32_t(idx * 2)}; },
|
||||
[](std::size_t idx){ return MemoryChecker{std::int32_t(idx * 2 + 1)}; },
|
||||
[](const MemoryChecker& val1, const MemoryChecker& val2){ return val1.value() == val2.value(); });
|
||||
[](const MemoryChecker& val1, const MemoryChecker& val2){ return val1.value() < val2.value(); });
|
||||
EXPECT_FALSE(MemoryChecker::alive_objects() < 0, "wrong effect from inplace_merge: number of ctors calls < num of dtors calls");
|
||||
EXPECT_FALSE(MemoryChecker::alive_objects() > 0, "wrong effect from inplace_merge: number of ctors calls > num of dtors calls");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue