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
Address complaints by code scanner
[ric-plt/lib/rmr.git]
/
test
/
ring_test.c
diff --git
a/test/ring_test.c
b/test/ring_test.c
index
f97d89c
..
f5f9682
100644
(file)
--- a/
test/ring_test.c
+++ b/
test/ring_test.c
@@
-39,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"
@@
-52,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;
}
}