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
Release RMR version 4.9.2
[ric-plt/lib/rmr.git]
/
test
/
ring_test.c
diff --git
a/test/ring_test.c
b/test/ring_test.c
index
5e1a81c
..
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>
@@
-35,10
+37,13
@@
#include <errno.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>
#include <string.h>
#include <stdint.h>
+#include <pthread.h>
+#include <semaphore.h>
+#include <netdb.h>
-#include "
../src/common/include/
rmr.h"
-#include "
../src/common/include/
rmr_agnostic.h"
-#include "
../src/common/src/
ring_static.c"
+#include "rmr.h"
+#include "rmr_agnostic.h"
+#include "ring_static.c"
#include "test_support.c" // things like fail_if()
#include "ring_static_test.c" // the actual tests
#include "test_support.c" // things like fail_if()
#include "ring_static_test.c" // the actual tests
@@
-48,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;
}
}