Eliminate the SI receive buffer length requirement
This change eliminates the need to enforce a receive
buffer maximum length as specified by the user application.
The length supplied will be assumed to be the "normal"
maximum and used as the default receive buffer size,
but when messages larger than this are received RMR will
now allocate a larger buffer to use.
Issue-ID: RIC-309
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I9dacadea40b982fde604b78789568b8118a89b35
diff --git a/test/rmr_si_test.c b/test/rmr_si_test.c
index 9f49530..aa1b6ab 100644
--- a/test/rmr_si_test.c
+++ b/test/rmr_si_test.c
@@ -55,6 +55,7 @@
#include <semaphore.h>
#define DEBUG 1
+#define PARANOID_CHECKS 1 // must have parinoid testing on to not fail on nil pointer tests
// specific test tools in this directory
#undef NNG_UNDER_TEST
@@ -73,6 +74,7 @@
#include "rmr_si.c"
#include "mbuf_api.c"
+
static void gen_rt( uta_ctx_t* ctx ); // defined in sr_si_static_test, but used by a few others (eliminate order requirement below)
// and finally....
@@ -83,6 +85,7 @@
#include "wormhole_static_test.c"
#include "mbuf_api_static_test.c"
#include "sr_si_static_test.c"
+#include "lg_buf_static_test.c"
#include "rmr_si_api_static_test.c"
@@ -95,6 +98,10 @@
rmr_set_vlevel( 5 ); // enable all debugging
+ fprintf( stderr, "\n<INFO> starting lg buffer tests (%d)\n", errors );
+ errors += rmr_lgbuf_test();
+ fprintf( stderr, "<INFO> error count: %d\n", errors );
+
fprintf( stderr, "\n<INFO> starting ring tests (%d)\n", errors );
errors += ring_test();
fprintf( stderr, "<INFO> error count: %d\n", errors );