X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fring_test.c;h=f5f9682108385814fc93b7f8f775d0f97dea15a8;hb=2bd8785ce17397e6f8e686be421c5a6c860a0b8c;hp=a06668f4e9f0ce5078e0008067f9329895e00ad7;hpb=8dd46415b94b33fa960bdd5732e909ffc4859520;p=ric-plt%2Flib%2Frmr.git diff --git a/test/ring_test.c b/test/ring_test.c index a06668f..f5f9682 100644 --- a/test/ring_test.c +++ b/test/ring_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 Nokia + Copyright (c) 2018-2019 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, @@ -20,7 +20,7 @@ /* Mmemonic: ring_test.c - Abstract: This is a stand alone test driver for the ring module. It + Abstract: This is a stand alone test driver for the ring module. It includes the static tests after setting up the environment then invokes it. @@ -28,6 +28,8 @@ Date: 3 April 2019 */ +#define NO_EMULATION + #include #include #include @@ -35,10 +37,13 @@ #include #include #include +#include +#include +#include -#include "../src/common/include/rmr.h" -#include "../src/common/include/rmr_agnostic.h" -#include "../src/common/src/ring_static.c" +#include "rmr.h" +#include "rmr_agnostic.h" +#include "ring_static.c" #include "test_support.c" // things like fail_if() #include "ring_static_test.c" // the actual tests @@ -48,11 +53,12 @@ int main( ) { errors += ring_test( ); + test_summary( errors, "ring tests" ); if( errors ) { fprintf( stderr, " ring tests failed\n" ); } else { fprintf( stderr, " ring tests pass\n" ); } - return errors; + return !! errors; }