X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Frt_nano_static_test.c;h=444c3effa0f07869803aa3f7ee30911db35aab6d;hb=c8c5946b142c5cc04449edc49a599f282c6573e4;hp=90cad7e805ef22575ae36e9a88d6172a00a3090a;hpb=5efb1e608cf966752c02b676d6fae09f951f71e9;p=ric-plt%2Flib%2Frmr.git diff --git a/test/rt_nano_static_test.c b/test/rt_nano_static_test.c index 90cad7e..444c3ef 100644 --- a/test/rt_nano_static_test.c +++ b/test/rt_nano_static_test.c @@ -1,8 +1,8 @@ // : vi ts=4 sw=4 noet : /* ================================================================================== - Copyright (c) 2019 Nokia - Copyright (c) 2018-2019 AT&T Intellectual Property. + Copyright (c) 2019-2021 Nokia + Copyright (c) 2018-2021 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -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; @@ -229,7 +231,10 @@ static int rt_test( ) { } } - uta_fib( "no-suhch-file" ); // drive some error checking for coverage + buf = uta_fib( "no-suhch-file" ); // drive some error checking for coverage + if( buf ) { + free( buf ); + } rt = uta_rt_init( ); // get us a route table state = uta_link2( NULL ); @@ -255,6 +260,7 @@ static int rt_test( ) { state = rt_link2_ep( NULL ); errors += fail_if_equal( state, -1, "call to link2_ep with nil ep returned true when false expected" ); + unlink( ".ut_rmr_verbose" ); - return !!errors; // 1 or 0 regardless of count + return errors; }