CI: Add silent cmake SonarCloud scan
[ric-plt/lib/rmr.git] / test / mbuf_api_test.c
index 09c4da4..bbace51 100644 (file)
@@ -1,8 +1,8 @@
 // : vi ts=4 sw=4 noet :
 /*
 ==================================================================================
-           Copyright (c) 2019 Nokia
-           Copyright (c) 2018-2019 AT&T Intellectual Property.
+           Copyright (c) 2019-2021 Nokia
+           Copyright (c) 2018-2021 AT&T Intellectual Property.
 
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
@@ -31,6 +31,8 @@
 */
 
 
+#define NO_EMULATION
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <netdb.h>
@@ -46,6 +48,7 @@
 #include "rmr.h"
 #include "rmr_agnostic.h"
 
+#include "logging.c"
 #include "mbuf_api.c"
 
 #define MSG_VER 3
@@ -98,11 +101,12 @@ int main( ) {
 
        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;
+       return !! errors;
 }