summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/.clang-tidy1
-rw-r--r--test/maid_test.cpp7
2 files changed, 7 insertions, 1 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy
index eecf9fd..d22cba7 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -2,7 +2,6 @@ Checks: >
*,
-*-avoid-c-arrays,
-*-magic-numbers,
- -*-special-member-functions,
-*-uppercase-literal-suffix,
-*-vararg,
-abseil-string-find-str-contains,
diff --git a/test/maid_test.cpp b/test/maid_test.cpp
index 47781a0..c4b2dad 100644
--- a/test/maid_test.cpp
+++ b/test/maid_test.cpp
@@ -37,6 +37,13 @@ static std::atomic<size_t> n_finished_threads(0);
class Junk : public Maid::Disposable {
public:
explicit Junk(size_t v) : _val(v) { ++n_junk; }
+
+ Junk(const Junk&) = delete;
+ Junk& operator=(const Junk&) = delete;
+
+ Junk(Junk&&) = delete;
+ Junk& operator=(Junk&&) = delete;
+
~Junk() override { --n_junk; }
size_t value() const { return _val; }