Code Review
/
ric-app
/
mc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Release 1.10.1 from staging
[ric-app/mc.git]
/
sidecars
/
listener
/
test
/
unit_test.c
diff --git
a/sidecars/listener/test/unit_test.c
b/sidecars/listener/test/unit_test.c
index
7acea3e
..
76aa72c
100644
(file)
--- 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 "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.
/*
Set up env things for the rdc setup call.
@@
-124,6
+124,9
@@
int main( int argc, char** argv ) {
errors++;
}
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
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