#include <stdio.h>
#include <signal.h>
+
+#include <chrono>
+#include <list>
+#include <mutex>
+#include <random>
+#include <thread>
+
#include "gtest/gtest.h"
#include "common/backport14.h"
#include "common/Mutex.h"
#include "common/Throttle.h"
#include "common/ceph_argparse.h"
#include "common/backport14.h"
-
-#include <thread>
-#include <atomic>
-#include <chrono>
-#include <mutex>
-#include <list>
-#include <random>
+#include "include/coredumpctl.h"
class ThrottleTest : public ::testing::Test {
protected:
}
TEST_F(ThrottleTest, destructor) {
+ PrCtl unset_dumpable;
EXPECT_DEATH({
int64_t throttle_max = 10;
auto throttle = ceph::make_unique<Throttle>(g_ceph_context, "throttle",
}
TEST(BackoffThrottle, destruct) {
+ PrCtl unset_dumpable;
EXPECT_DEATH({
auto throttle = ceph::make_unique<BackoffThrottle>(
g_ceph_context, "destructor test", 10);
}
TEST(OrderedThrottle, destruct) {
+ PrCtl unset_dumpable;
EXPECT_DEATH({
auto throttle = ceph::make_unique<OrderedThrottle>(1, false);
throttle->start_op(nullptr);