X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Frt_static_test.c;h=13a216b0ea735c4d8bd3d5fa1a2e40aca145fd54;hb=refs%2Fchanges%2F50%2F250%2F6;hp=972b767046d74636d3b67ad58d48f33ddf71efdf;hpb=3376a21cb270f2da1f51a929058451d22a66e93f;p=ric-plt%2Flib%2Frmr.git diff --git a/test/rt_static_test.c b/test/rt_static_test.c index 972b767..13a216b 100644 --- a/test/rt_static_test.c +++ b/test/rt_static_test.c @@ -34,9 +34,11 @@ #include #include #include +#include +#include -#include "../src/common/include/rmr.h" -#include "../src/common/include/rmr_agnostic.h" +#include "rmr.h" +#include "rmr_agnostic.h" typedef struct entry_info { int group; @@ -276,16 +278,12 @@ static int rt_test( ) { uta_fib( "no-suhch-file" ); // drive some error checking for coverage -/* - if( ctx ) { - if( ctx->rtg_addr ) { - free( ctx->rtg_addr ); - } - free( ctx ); - } -*/ - state = uta_link2( "worm", NULL, NULL ); + ep = (endpoint_t *) malloc( sizeof( *ep ) ); + pthread_mutex_init( &ep->gate, NULL ); + ep->name = strdup( "worm" ); + ep->addr = NULL; + state = uta_link2( ep ); errors += fail_if_true( state, "link2 did not return false when given nil pointers" ); state = uta_epsock_rr( rt, 122, 0, NULL, NULL );