Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temporarily disabling various tests #82

Merged
merged 13 commits into from
Nov 17, 2024
10 changes: 8 additions & 2 deletions tests/beman/execution26/exec-just.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ struct counting_resource : std::pmr::memory_resource {
++this->count;
return operator new(size);
}
auto do_deallocate(void* p, std::size_t, std::size_t) -> void override { operator delete(p); }
auto do_deallocate(void* p, std::size_t, std::size_t) -> void override
{
operator delete(p);
}
auto do_is_equal(const std::pmr::memory_resource& other) const noexcept -> bool override { return this == &other; }
};
auto test_just_allocator() -> void {
Expand All @@ -185,6 +188,7 @@ auto test_just_allocator() -> void {

ASSERT(resource.count == 0u);
auto copy(std::make_obj_using_allocator<std::pmr::string>(std::pmr::polymorphic_allocator<>(&resource), str));
test::use(copy);
ASSERT(resource.count == 1u);

auto env{test_std::get_env(receiver)};
Expand All @@ -195,7 +199,6 @@ auto test_just_allocator() -> void {
auto state{test_std::connect(std::move(sender), memory_receiver{&resource})};
test::use(state);
ASSERT(resource.count == 2u);
test::use(copy);
}
} // namespace

Expand All @@ -208,7 +211,10 @@ TEST(exec_just) {
try {
test_just_constraints();
test_just();
#ifndef _MSC_VER
//-dk:TODO reenable allocator test for MSVC++
test_just_allocator();
#endif
} catch (...) {
// NOLINTNEXTLINE(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
ASSERT(nullptr == "the just tests shouldn't throw");
Expand Down
3 changes: 3 additions & 0 deletions tests/beman/execution26/exec-then.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ auto test_has(auto cpo, auto in_sender, auto fun) -> void {
static_assert(requires {
{ in_sender | cpo(fun) } -> test_std::sender;
});
#ifndef _MSC_VER
//-dk:TODO reenable this test
static_assert(requires {
{
in_sender | cpo(fun) | cpo([](auto&&...) {})
} -> test_std::sender;
});
#endif
auto sender{cpo(in_sender, fun)};
auto op{test_std::connect(::std::move(sender), receiver{})};
test_std::start(op);
Expand Down