Bump RMR version to v4.7.4
[ric-app/mc.git] / sidecars / listener / test / unit_test.c
index 7acea3e..76aa72c 100644 (file)
@@ -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