Add summary data to unit test output
[ric-plt/lib/rmr.git] / test / ring_test.c
index 51b8260..f5f9682 100644 (file)
@@ -28,6 +28,8 @@
        Date:           3 April 2019
 */
 
+#define NO_EMULATION
+
 #include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -37,6 +39,7 @@
 #include <stdint.h>
 #include <pthread.h>
 #include <semaphore.h>
+#include <netdb.h>
 
 #include "rmr.h"
 #include "rmr_agnostic.h"
@@ -50,11 +53,12 @@ int main( ) {
 
        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" );
        }
 
-       return errors;
+       return !! errors;
 }