X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fsr_nano_static_test.c;fp=test%2Fsr_nano_static_test.c;h=cb2b9ff9009f54c3e5855c3345f9d0efee86eb60;hb=a68562a02028434a87149d5996b291e83d33be51;hp=815f68ba30eaf981d6aafe515be99cd4148c8504;hpb=39a4b3f6c7b15bde074d68023cf5fe1901d40996;p=ric-plt%2Flib%2Frmr.git diff --git a/test/sr_nano_static_test.c b/test/sr_nano_static_test.c index 815f68b..cb2b9ff 100644 --- a/test/sr_nano_static_test.c +++ b/test/sr_nano_static_test.c @@ -43,7 +43,7 @@ /* Generate a simple route table (for all but direct route table testing). This table contains multiple tables inasmuch as a second update set of - records follows the initial set. + records follows the initial set. */ static void gen_rt( uta_ctx_t* ctx ) { int fd; @@ -198,7 +198,7 @@ static int sr_nano_test() { ctx->rtable = NULL; gen_mlnl_rt( ctx ); // ensure that a file with missing last new line does not trip us up errors += fail_if_nil( ctx->rtable, "read route table file with missing last newline did not produce a table" ); - + ctx->rtable = NULL; gen_rt( ctx ); // forces a static load with some known info since we don't start the rtc() errors += fail_if_nil( ctx->rtable, "read multi test route table file did not produce a table" ); @@ -268,6 +268,7 @@ static int sr_nano_test() { rtc( NULL ); // coverage test with nil pointer rtc( ctx ); + unlink( ".ut_rmr_verbose" ); return errors; }