mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-07 07:50:32 +00:00
Tests should fail, not die
This commit is contained in:
parent
0db72cad96
commit
84e85111c5
@ -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 <boost/exception/diagnostic_information.hpp>
|
||||
@ -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<ControlThread> control_thread = std::make_shared<ControlThread>(config);
|
||||
|
||||
std::shared_ptr<Concurrent_Queue<pmt::pmt_t>> control_queue = std::make_shared<Concurrent_Queue<pmt::pmt_t>>();
|
||||
@ -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<ControlThread>(config);
|
||||
std::shared_ptr<Concurrent_Queue<pmt::pmt_t>> control_queue2 = std::make_shared<Concurrent_Queue<pmt::pmt_t>>();
|
||||
|
||||
@ -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<ControlThread> control_thread = std::make_shared<ControlThread>(config);
|
||||
std::shared_ptr<Concurrent_Queue<pmt::pmt_t>> control_queue = std::make_shared<Concurrent_Queue<pmt::pmt_t>>();
|
||||
control_thread->set_control_queue(control_queue);
|
||||
|
Loading…
Reference in New Issue
Block a user