diff --git a/openair2/LAYER2/nr_rlc/tests/Makefile b/openair2/LAYER2/nr_rlc/tests/Makefile index c23726444d..1e9cd432bf 100644 --- a/openair2/LAYER2/nr_rlc/tests/Makefile +++ b/openair2/LAYER2/nr_rlc/tests/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -g --coverage -I. -I../../../.. +CFLAGS=-Wall -g --coverage -I. -I../../../.. -D_STANDALONE_TESTING_ LIB=nr_rlc_entity.o nr_rlc_entity_am.o nr_rlc_entity_um.o nr_rlc_entity_tm.o \ nr_rlc_pdu.o nr_rlc_sdu.o time_stat.o diff --git a/openair2/LAYER2/nr_rlc/tests/test.c b/openair2/LAYER2/nr_rlc/tests/test.c index 235c477675..716a6aef11 100644 --- a/openair2/LAYER2/nr_rlc/tests/test.c +++ b/openair2/LAYER2/nr_rlc/tests/test.c @@ -10,7 +10,9 @@ #include #include +#ifndef _STANDALONE_TESTING_ #include "common/utils/LOG/log.h" +#endif /* * GNB_AM @@ -224,7 +226,10 @@ int test_main(void) int ue_recv_fails = 0; int gnb_pdu_size = 1000; int ue_pdu_size = 1000; + +#ifndef _STANDALONE_TESTING_ logInit(); +#endif printf("TEST: start\n");