Skip to content

Commit

Permalink
update native test
Browse files Browse the repository at this point in the history
  • Loading branch information
taegyunkim committed Oct 30, 2024
1 parent 26037b4 commit 3cdff6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ include(AnalysisFunc)

function(dd_wrapper_add_test name)
add_executable(${name} ${ARGN})
target_include_directories(${name} PRIVATE ../include)
target_include_directories(${name} PRIVATE ../include ../..)
target_link_libraries(${name} PRIVATE gmock gtest_main _stack_v2)
add_ddup_config(${name})

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#include "thread_span_links.hpp"

#include "constants.hpp"

#include <gmock/gmock.h>
#include <gtest/gtest.h>

Expand All @@ -7,8 +11,6 @@
#include <thread>
#include <unordered_set>

#include "thread_span_links.hpp"

static void
get()
{
Expand Down Expand Up @@ -72,7 +74,9 @@ TEST(ThreadSpanLinks, ClearUnSeen)
}
}

Datadog::ThreadSpanLinks::get_instance().clear_unseen(seen_thread_ids);
for (unsigned int i = 0; i < g_default_unseen_count; ++i) {
Datadog::ThreadSpanLinks::get_instance().clear_unseen(seen_thread_ids);
}

// Check that the unseen ids are removed
for (auto thread_id : thread_ids) {
Expand Down

0 comments on commit 3cdff6c

Please sign in to comment.