Skip to content

Commit

Permalink
Build unit tests for BRAVO (#11790)
Browse files Browse the repository at this point in the history
  • Loading branch information
masaori335 authored Sep 26, 2024
1 parent c1f0135 commit dac1ab1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/tsutil/Bravo.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ template <typename T = std::shared_mutex, size_t SLOT_SIZE = 256, int SLOWDOWN_G
void
lock_shared(Token &token)
{
ink_assert(SLOT_SIZE >= DenseThreadId::num_possible_values());
debug_assert(SLOT_SIZE >= DenseThreadId::num_possible_values());

// Fast path
if (_mutex.read_bias.load(std::memory_order_acquire)) {
Expand Down Expand Up @@ -279,7 +279,7 @@ template <typename T = std::shared_mutex, size_t SLOT_SIZE = 256, int SLOWDOWN_G
bool
try_lock_shared(Token &token)
{
ink_assert(SLOT_SIZE >= DenseThreadId::num_possible_values());
debug_assert(SLOT_SIZE >= DenseThreadId::num_possible_values());

// Fast path
if (_mutex.read_bias.load(std::memory_order_acquire)) {
Expand Down
3 changes: 2 additions & 1 deletion src/tsutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ endif()
if(BUILD_TESTING)
add_executable(
test_tsutil
unit_tests/test_Metrics.cc
unit_tests/test_Bravo.cc
unit_tests/test_LocalBuffer.cc
unit_tests/test_Metrics.cc
unit_tests/test_PostScript.cc
unit_tests/test_Strerror.cc
unit_tests/test_StringConvert.cc
Expand Down
File renamed without changes.

0 comments on commit dac1ab1

Please sign in to comment.