From d2f852c217bd80ff2549dc1c879c3655d3a0fba6 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Fri, 10 Jul 2020 17:26:58 -0300 Subject: [PATCH] Add test that destruction doesn't throw --- tests/test_tagged_threads.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_tagged_threads.cpp b/tests/test_tagged_threads.cpp index 8e03e97..914a58c 100644 --- a/tests/test_tagged_threads.cpp +++ b/tests/test_tagged_threads.cpp @@ -25,6 +25,11 @@ TEST_CASE("tagged thread start functions", "[tagged][start]") { } } +TEST_CASE("tagged threads quit-before-start", "[tagged][quit]") { + auto lmq = std::make_unique(get_logger(""), LogLevel::trace); + auto t_abc = lmq->add_tagged_thread("abc"); + REQUIRE_NOTHROW(lmq.reset()); +} TEST_CASE("batch jobs to tagged threads", "[tagged][batch]") { lokimq::LokiMQ lmq{get_logger(""), LogLevel::trace};