X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fsr_nano_static_test.c;h=ef6e496e85e470b17735a4327cc7f09ac90cd10b;hb=b7a31bd94da349e9c49f6dd7a5bcded74877a8ae;hp=14c678fdfb687dc65ab64f4b9f84cacb64f154b2;hpb=412d53dfa2f9b5b56a448797d0dfec3b0f11f666;p=ric-plt%2Flib%2Frmr.git diff --git a/test/sr_nano_static_test.c b/test/sr_nano_static_test.c index 14c678f..ef6e496 100644 --- a/test/sr_nano_static_test.c +++ b/test/sr_nano_static_test.c @@ -50,6 +50,7 @@ static void gen_rt( uta_ctx_t* ctx ) { char* rt_stuff; // strings for the route table rt_stuff = + "\r" // ensure we are not screwed by broken OSes that insist on using \r "newrt|end\n" // end of table check before start of table found "# comment to drive full comment test\n" "\n" // handle blank lines @@ -114,6 +115,7 @@ static int sr_nano_test() { ctx->max_plen = RMR_MAX_RCV_BYTES + sizeof( uta_mhdr_t ); ctx->max_mlen = ctx->max_plen + sizeof( uta_mhdr_t ); ctx->my_name = strdup( "dummy-test" ); + ctx->my_ip = strdup( "30.4.19.86:1111" ); uta_lookup_rtg( ctx ); gen_rt( ctx ); // forces a static load with some known info since we don't start the rtc()