Skip to content

Commit

Permalink
fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
gleocadie committed Apr 19, 2024
1 parent 96057c6 commit 93658f6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "gtest/gtest.h"

#include "OpSysTools.h"
#include "profiler/src/ProfilerEngine/Datadog.Profiler.Native.Linux/ProfilerSignalManager.h"

#include <future>
Expand Down Expand Up @@ -88,13 +89,14 @@ TEST_F(ProfilerSignalManagerFixture, CheckTwoDifferentSignalInstallation)
EXPECT_TRUE(sigusr1SignalManager->RegisterHandler(CustomHandler));
EXPECT_TRUE(sigprofSignalManager->RegisterHandler(SigProfCustomHandler));

auto tid = OpSysTools::GetThreadId();
SigProfHandlerCalled = false;
sigusr1SignalManager->SendSignal(gettid());
sigusr1SignalManager->SendSignal(tid);

ASSERT_FALSE(SigProfHandlerCalled);

SigProfHandlerCalled = false;
sigprofSignalManager->SendSignal(gettid());
sigprofSignalManager->SendSignal(tid);

ASSERT_TRUE(SigProfHandlerCalled);
}
Expand Down

0 comments on commit 93658f6

Please sign in to comment.