46 inline static std::string_view logger_name =
47 "ores.testing.test_timeout_listener";
51 static auto instance = make_logger(logger_name);
56 using Catch::EventListenerBase::EventListenerBase;
58 void testCaseStarting(Catch::TestCaseInfo
const& testInfo)
override;
59 void testCaseEnded(Catch::TestCaseStats
const& testCaseStats)
override;
62 void watchdog_thread_func();
64 std::chrono::steady_clock::time_point test_start_time_;
65 std::string current_test_name_;
66 std::atomic<bool> test_running_{
false};
67 std::thread watchdog_thread_;
68 std::chrono::seconds timeout_{60};