llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: Vy Nguyen (oontvoo) <details> <summary>Changes</summary> Unregister the fake manager at end of test (https://github.com/llvm/llvm-project/issues/129910) --- Full diff: https://github.com/llvm/llvm-project/pull/129921.diff 1 Files Affected: - (modified) lldb/unittests/Core/TelemetryTest.cpp (+7-1) ``````````diff diff --git a/lldb/unittests/Core/TelemetryTest.cpp b/lldb/unittests/Core/TelemetryTest.cpp index 0e9f329110872..5b762ae816362 100644 --- a/lldb/unittests/Core/TelemetryTest.cpp +++ b/lldb/unittests/Core/TelemetryTest.cpp @@ -11,6 +11,7 @@ #include "llvm/ADT/StringRef.h" #include "llvm/Support/Error.h" #include "llvm/Telemetry/Telemetry.h" +#include "TestingSupport/SubsystemRAII.h" #include "llvm/Testing/Support/Error.h" #include "gtest/gtest.h" #include <memory> @@ -77,8 +78,13 @@ class FakePlugin : public telemetry::TelemetryManager { using namespace lldb_private::telemetry; +class TelemetryTest : public testing::Test { + public: + SubsystemRAII<FakePlugin> subsystems; +}; + #if LLVM_ENABLE_TELEMETRY -#define TELEMETRY_TEST(suite, test) TEST(suite, test) +#define TELEMETRY_TEST(suite, test) TEST_F(suite, test) #else #define TELEMETRY_TEST(suite, test) TEST(DISABLED_##suite, test) #endif `````````` </details> https://github.com/llvm/llvm-project/pull/129921 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits