X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fhdr_static_test.c;h=3a555ced0787b08bfcb3a07fdee1aa576feb717d;hb=a344fdcdeb64f52a4f5c0e0c64e561c98a1e2890;hp=9d7a38c39c0fb6bc4eef5e750f2de6cce0af1ef2;hpb=8dd46415b94b33fa960bdd5732e909ffc4859520;p=ric-plt%2Flib%2Frmr.git diff --git a/test/hdr_static_test.c b/test/hdr_static_test.c index 9d7a38c..3a555ce 100644 --- a/test/hdr_static_test.c +++ b/test/hdr_static_test.c @@ -1,14 +1,14 @@ // : 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. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -34,6 +34,8 @@ #include #include #include +#include +#include #include #include @@ -41,13 +43,12 @@ #include #include -#include "../src/common/include/rmr.h" -#include "../src/common/include/rmr_agnostic.h" -#include "../src/nng/include/rmr_nng_private.h" +#include "rmr.h" +#include "rmr_agnostic.h" #define EMULATE_NNG -#include "test_nng_em.c" -#include "../src/nng/src/sr_nng_static.c" +#define NNG_UNDER_TEST +#include "sr_nng_static.c" #include "test_support.c" @@ -104,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; }