Skip to content

Commit

Permalink
notest (#1427)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #1427

Differential Revision: D58215474
  • Loading branch information
Matt Blagden authored and facebook-github-bot committed Jun 6, 2024
1 parent 1b1aba7 commit ee17bf5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions unittests/VMRuntime/SamplingProfilerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,22 @@ TEST(SamplingProfilerTest, RegisterDifferentThread) {
constexpr uint32_t kThreadCount = 3;

auto rt = makeRuntime(withSamplingProfilerEnabled);
rt->samplingProfiler->enable();

for (uint32_t threadNumber = 0; threadNumber < kThreadCount; ++threadNumber) {
std::thread([&]() {
rt->samplingProfiler->setRuntimeThread();
EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());
}).join();
}

rt->samplingProfiler->disable();
}

TEST(SamplingProfilerTest, RegisterIdenticalThread) {
auto rt = makeRuntime(withSamplingProfilerEnabled);
rt->samplingProfiler->enable();

rt->samplingProfiler->setRuntimeThread();
EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());
rt->samplingProfiler->setRuntimeThread();
EXPECT_TRUE(rt->samplingProfiler->belongsToCurrentThread());

rt->samplingProfiler->disable();
}

} // namespace
Expand Down

0 comments on commit ee17bf5

Please sign in to comment.