Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Prevent message truncation by populate function
[ric-plt/lib/rmr.git]
/
test
/
mbuf_api_test.c
diff --git
a/test/mbuf_api_test.c
b/test/mbuf_api_test.c
index
b1a1ebd
..
09c4da4
100644
(file)
--- a/
test/mbuf_api_test.c
+++ b/
test/mbuf_api_test.c
@@
-39,13
+39,16
@@
#include <errno.h>
#include <pthread.h>
#include <ctype.h>
#include <errno.h>
#include <pthread.h>
#include <ctype.h>
+#include <pthread.h>
+#include <semaphore.h>
-#include "
../src/common/include/
rmr.h"
-#include "
../src/common/include/
rmr_agnostic.h"
+#include "rmr.h"
+#include "rmr_agnostic.h"
-#include "
../src/common/src/mbuf_api.c" // module under test
+#include "
mbuf_api.c"
+#define MSG_VER 3
#include "test_support.c" // our private library of test tools
#include "mbuf_api_static_test.c" // test functions
#include "test_support.c" // our private library of test tools
#include "mbuf_api_static_test.c" // test functions
@@
-84,7
+87,7
@@
extern rmr_mbuf_t* rmr_realloc_msg( rmr_mbuf_t* msg, int new_tr_size ) {
new_msg->header = new_msg->tp_buf;
new_msg->alloc_len = 2048;
new_msg->len = msg->len;
new_msg->header = new_msg->tp_buf;
new_msg->alloc_len = 2048;
new_msg->len = msg->len;
-
+
return new_msg;
}
return new_msg;
}
@@
-100,4
+103,6
@@
int main( ) {
} else {
fprintf( stderr, "<OK> mbuf_api tests pass\n" );
}
} else {
fprintf( stderr, "<OK> mbuf_api tests pass\n" );
}
+
+ return errors;
}
}