X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=sidecars%2Flistener%2Ftest%2Funit_test.c;h=76aa72c25dc429d5d4231f741180dd12cdb5824d;hb=refs%2Ftags%2F1.12.0;hp=7acea3eb23581866f1d78d19c3d40f445f9bc2fe;hpb=216e43c47dc133f10f095f78dad1ac8b8c1a55f9;p=ric-app%2Fmc.git diff --git a/sidecars/listener/test/unit_test.c b/sidecars/listener/test/unit_test.c index 7acea3e..76aa72c 100644 --- a/sidecars/listener/test/unit_test.c +++ b/sidecars/listener/test/unit_test.c @@ -41,8 +41,8 @@ #include "test_rmr_em.c" // emulated rmr functions (for receives) // this/these are what we are testing; include them directly (must be after forever def) -#include "../mcl.c" -#include "../rdc.c" +#include "../src/mcl.c" +#include "../src/rdc.c" /* Set up env things for the rdc setup call. @@ -124,6 +124,9 @@ int main( int argc, char** argv ) { errors++; } + close_fifo( ctx, TEST_MTYPE, WRITER ); // close one we know is there + close_fifo( ctx, 84306, WRITER ); // coverage on error case + mcl_start_listening( ctx, port, 0 ); // start the listener // under test, the FOREVER = 0 keeps fanout from blocking; drive several times to cover all cases