[Lldb-commits] [lldb] [lldb] Add an Alarm class for coalescing progress reports (PR #85329)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 15 08:28:01 PDT 2024


================
@@ -0,0 +1,164 @@
+//===-- AlarmTest.cpp -----------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "lldb/Host/Alarm.h"
+#include "gtest/gtest.h"
+
+#include <chrono>
+#include <thread>
+
+using namespace lldb_private;
+using namespace std::chrono_literals;
+
+static constexpr auto ALARM_TIMEOUT = 500ms;
+static constexpr auto TEST_TIMEOUT = 1000ms;
----------------
adrian-prantl wrote:

We usually add a factor 10 when running under ASAN `#if __has_feature(address_sanitizer)`

https://github.com/llvm/llvm-project/pull/85329


More information about the lldb-commits mailing list