From 84e85111c5f51d175528d54690b6c6caa6a12274 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 19 Dec 2024 09:26:19 +0100 Subject: [PATCH] Tests should fail, not die --- tests/unit-tests/control-plane/control_thread_test.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit-tests/control-plane/control_thread_test.cc b/tests/unit-tests/control-plane/control_thread_test.cc index 9aa6d3620..925ff9e57 100644 --- a/tests/unit-tests/control-plane/control_thread_test.cc +++ b/tests/unit-tests/control-plane/control_thread_test.cc @@ -21,6 +21,7 @@ #include "command_event.h" #include "concurrent_queue.h" #include "control_thread.h" +#include "gnss_sdr_filesystem.h" #include "gnss_sdr_make_unique.h" #include "in_memory_configuration.h" #include @@ -111,6 +112,8 @@ TEST_F(ControlThreadTest /*unused*/, InstantiateRunControlMessages /*unused*/) config->set_property("PVT.item_type", "gr_complex"); config->set_property("GNSS-SDR.internal_fs_sps", "4000000"); + ASSERT_TRUE(fs::exists(file)); + std::shared_ptr control_thread = std::make_shared(config); std::shared_ptr> control_queue = std::make_shared>(); @@ -170,6 +173,8 @@ TEST_F(ControlThreadTest /*unused*/, InstantiateRunControlMessages2 /*unused*/) config->set_property("PVT.item_type", "gr_complex"); config->set_property("GNSS-SDR.internal_fs_sps", "4000000"); + ASSERT_TRUE(fs::exists(file)); + auto control_thread2 = std::make_unique(config); std::shared_ptr> control_queue2 = std::make_shared>(); @@ -232,6 +237,8 @@ TEST_F(ControlThreadTest /*unused*/, StopReceiverProgrammatically /*unused*/) config->set_property("PVT.item_type", "gr_complex"); config->set_property("GNSS-SDR.internal_fs_sps", "4000000"); + ASSERT_TRUE(fs::exists(file)); + std::shared_ptr control_thread = std::make_shared(config); std::shared_ptr> control_queue = std::make_shared>(); control_thread->set_control_queue(control_queue);