Commit a373a8da authored by Cedric Roux's avatar Cedric Roux

nr rlc: fix standalone tests

./run_tests.sh was not functional anymore because of the introduction
of AssertFatal() in nr_rlc_entity.c

Including the .h and providing exit_function() solves the problem.
parent 69a84825
......@@ -30,6 +30,7 @@
#include "LOG/log.h"
#include "common/utils/time_stat.h"
#include "common/utils/assertions.h"
static void nr_rlc_entity_get_stats(
nr_rlc_entity_t *entity,
......
......@@ -207,6 +207,15 @@ void max_retx_reached_ue(void *max_retx_reached_data,
exit(1);
}
#ifdef _STANDALONE_TESTING_
void exit_function(const char *file, const char *function, const int line, const char *s, const int assert)
{
exit(1);
}
#endif
int test_main(void)
{
nr_rlc_entity_t *gnb = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment