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
New API added for debugging rmr rx queue
[ric-plt/lib/rmr.git]
/
test
/
ring_test.c
diff --git
a/test/ring_test.c
b/test/ring_test.c
index
51b8260
..
f5f9682
100644
(file)
--- a/
test/ring_test.c
+++ b/
test/ring_test.c
@@
-28,6
+28,8
@@
Date: 3 April 2019
*/
Date: 3 April 2019
*/
+#define NO_EMULATION
+
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
@@
-37,6
+39,7
@@
#include <stdint.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdint.h>
#include <pthread.h>
#include <semaphore.h>
+#include <netdb.h>
#include "rmr.h"
#include "rmr_agnostic.h"
#include "rmr.h"
#include "rmr_agnostic.h"
@@
-50,11
+53,12
@@
int main( ) {
errors += ring_test( );
errors += ring_test( );
+ test_summary( errors, "ring tests" );
if( errors ) {
fprintf( stderr, "<FAIL> ring tests failed\n" );
} else {
fprintf( stderr, "<OK> ring tests pass\n" );
}
if( errors ) {
fprintf( stderr, "<FAIL> ring tests failed\n" );
} else {
fprintf( stderr, "<OK> ring tests pass\n" );
}
- return errors;
+ return
!!
errors;
}
}