fix compilation issue

master
Francisco Paisana 5 years ago
parent 67ccaf1029
commit 0b962f19f4

@ -101,11 +101,11 @@ void erase_if(MapContainer& c, Predicate should_remove)
* Logging * * Logging *
*******************/ *******************/
class log_tester2 final : public srslte::scoped_tester_log class log_tester final : public srslte::scoped_tester_log
{ {
public: public:
log_tester2() : srslte::scoped_tester_log("MAC") { exit_on_error = true; } log_tester() : srslte::scoped_tester_log("MAC") { exit_on_error = true; }
~log_tester2() override { log_diagnostics(); } ~log_tester() override { log_diagnostics(); }
void log_diagnostics() override void log_diagnostics() override
{ {
@ -118,8 +118,8 @@ public:
info("[TESTER] This was the seed: %u\n", seed); info("[TESTER] This was the seed: %u\n", seed);
} }
}; };
log_tester2 log_global; log_tester log_global;
bool check_old_pids = true; bool check_old_pids = true;
/******************* /*******************
* Dummies * * Dummies *

@ -151,7 +151,7 @@ int test_correct_insertion()
int test_correct_meascfg_calculation() int test_correct_meascfg_calculation()
{ {
srslte::scoped_tester_log log_test("MEASCFG_CALC"); srslte::scoped_tester_log log_test("MEASCFG_CALC");
var_meas_cfg_t src_var(&log_h), target_var(&log_h); var_meas_cfg_t src_var(&log_h), target_var(&log_h);
meas_cell_cfg_t cell1{}, cell2{}; meas_cell_cfg_t cell1{}, cell2{};
cell1.earfcn = 3400; cell1.earfcn = 3400;
@ -313,4 +313,4 @@ int main()
printf("Success\n"); printf("Success\n");
return 0; return 0;
} }

Loading…
Cancel
Save