From ee17bf53d6d82cb2a946a5be55dc90f215ed8636 Mon Sep 17 00:00:00 2001 From: Matt Blagden Date: Thu, 6 Jun 2024 03:26:11 -0700 Subject: [PATCH] notest (#1427) Summary: Pull Request resolved: https://github.com/facebook/hermes/pull/1427 Differential Revision: D58215474 --- unittests/VMRuntime/SamplingProfilerTest.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/unittests/VMRuntime/SamplingProfilerTest.cpp b/unittests/VMRuntime/SamplingProfilerTest.cpp index 73159c63bf6..7d1f2cdf4ad 100644 --- a/unittests/VMRuntime/SamplingProfilerTest.cpp +++ b/unittests/VMRuntime/SamplingProfilerTest.cpp @@ -68,7 +68,6 @@ 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([&]() { @@ -76,20 +75,15 @@ TEST(SamplingProfilerTest, RegisterDifferentThread) { 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