*/
+#define NO_EMULATION
+
#include <stdio.h>
#include <stdlib.h>
#include <netdb.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 "logging.c"
+#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
new_msg->header = new_msg->tp_buf;
new_msg->alloc_len = 2048;
new_msg->len = msg->len;
-
+
return new_msg;
}
errors += mbuf_api_test( );
+ test_summary( errors, "mbuf API tests" );
if( errors ) {
fprintf( stderr, "<FAIL> mbuf_api tests failed\n" );
} else {
fprintf( stderr, "<OK> mbuf_api tests pass\n" );
}
+
+ return errors;
}