#include <thread>
#include "include/scope_guard.h"
-#ifdef HAVE_BOOST_CONTEXT
#include <spawn/spawn.hpp>
-#endif
#include <gtest/gtest.h>
struct RadosEnv : public ::testing::Environment {
void SetUp() override {
rados.emplace(g_ceph_context);
- ASSERT_EQ(0, rados->start());
+ ASSERT_EQ(0, rados->start(null_yield));
int r = rados->pool({poolname}).create();
if (r == -EEXIST)
r = 0;
EXPECT_EQ(window, max_outstanding);
}
-#ifdef HAVE_BOOST_CONTEXT
TEST_F(Aio_Throttle, YieldCostOverWindow)
{
auto obj = make_obj(__PRETTY_FUNCTION__);
EXPECT_EQ(0u, outstanding);
EXPECT_EQ(window, max_outstanding);
}
-#endif // HAVE_BOOST_CONTEXT
} // namespace rgw