Fixed some static code errors
[ric-plt/lib/rmr.git] / test / rmr_si_test.c
index 16d570f..491242d 100644 (file)
@@ -60,7 +60,6 @@
                                                                                        // specific test tools in this directory
 #undef NNG_UNDER_TEST 
 #include "test_support.c"                                      // things like fail_if()
-#include "test_ctx_support.c"                          // dummy context support
 #include "test_msg_support.c"
 #include "test_gen_rt.c"
 
@@ -75,6 +74,8 @@
 #include "rmr_si.c"
 #include "mbuf_api.c"
 
+#include "test_ctx_support.c"                          // dummy context support
+
 
 static void gen_rt( uta_ctx_t* ctx );          // defined in sr_si_static_test, but used by a few others (eliminate order requirement below)
 
@@ -87,6 +88,7 @@ static void gen_rt( uta_ctx_t* ctx );         // defined in sr_si_static_test, but used
 #include "mbuf_api_static_test.c"
 #include "sr_si_static_test.c"
 #include "lg_buf_static_test.c"
+#include "alarm_static_test.c"
 // do NOT include the receive test static must be stand alone
 
 #include "rmr_si_api_static_test.c"
@@ -100,6 +102,10 @@ int main() {
 
        rmr_set_vlevel( 5 );                    // enable all debugging
 
+       fprintf( stderr, "\n<INFO> starting alarm tests (%d)\n", errors );
+       errors += alarm_test();
+       fprintf( stderr, "<INFO> error count: %d\n", errors );
+
        fprintf( stderr, "\n<INFO> starting lg buffer tests (%d)\n", errors );
        errors += rmr_lgbuf_test();
        fprintf( stderr, "<INFO> error count: %d\n", errors );