summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/.clang-tidy1
-rw-r--r--test/build_test.cpp4
-rw-r--r--test/ringbuffer_test.cpp6
3 files changed, 5 insertions, 6 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy
index de052d2..85feab3 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -2,7 +2,6 @@ Checks: >
*,
-*-avoid-c-arrays,
-*-magic-numbers,
- -*-uppercase-literal-suffix,
-*-vararg,
-abseil-string-find-str-contains,
-altera-*,
diff --git a/test/build_test.cpp b/test/build_test.cpp
index 52559bf..c228651 100644
--- a/test/build_test.cpp
+++ b/test/build_test.cpp
@@ -44,8 +44,8 @@ main()
raul::Maid maid;
NonCopyableThing non_copyable;
raul::Path path;
- raul::RingBuffer ring_buffer(64u);
- raul::Semaphore semaphore(0u);
+ raul::RingBuffer ring_buffer(64U);
+ raul::Semaphore semaphore(0U);
raul::Symbol symbol("foo");
try {
diff --git a/test/ringbuffer_test.cpp b/test/ringbuffer_test.cpp
index 1f94b02..0a2dd41 100644
--- a/test/ringbuffer_test.cpp
+++ b/test/ringbuffer_test.cpp
@@ -27,7 +27,7 @@
#include <string>
#include <thread>
-constexpr const auto MSG_SIZE = 20u;
+constexpr const auto MSG_SIZE = 20U;
namespace {
@@ -41,7 +41,7 @@ struct Context {
int
gen_msg(int* msg, int start)
{
- for (unsigned i = 0u; i < MSG_SIZE; ++i) {
+ for (unsigned i = 0U; i < MSG_SIZE; ++i) {
msg[i] = start;
start = (start + 1) % INT_MAX;
}
@@ -51,7 +51,7 @@ gen_msg(int* msg, int start)
void
check_msg(const int* msg1, const int* msg2)
{
- for (unsigned i = 0u; i < MSG_SIZE; ++i) {
+ for (unsigned i = 0U; i < MSG_SIZE; ++i) {
assert(msg1[i] == msg2[i]);
}
}