X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fhdr_static_test.c;h=3a555ced0787b08bfcb3a07fdee1aa576feb717d;hb=refs%2Fchanges%2F34%2F11234%2F5;hp=f716378c22954842f305347c2a2010d94603ad66;hpb=412d53dfa2f9b5b56a448797d0dfec3b0f11f666;p=ric-plt%2Flib%2Frmr.git diff --git a/test/hdr_static_test.c b/test/hdr_static_test.c index f716378..3a555ce 100644 --- a/test/hdr_static_test.c +++ b/test/hdr_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. @@ -45,10 +45,9 @@ #include "rmr.h" #include "rmr_agnostic.h" -#include "rmr_nng_private.h" #define EMULATE_NNG -#include "test_nng_em.c" +#define NNG_UNDER_TEST #include "sr_nng_static.c" #include "test_support.c" @@ -106,9 +105,13 @@ static int hdr_test( ) { if( ! errors ) { fprintf( stderr, " all msg header tests pass\n" ); } - return !! errors; + return errors; } int main() { - return hdr_test(); + int errors = 0; + + errors += hdr_test(); + + return !! errors; }