Beef up unit tests for SI95 code
[ric-plt/lib/rmr.git] / test / hdr_static_test.c
index 1e30d86..3a555ce 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.
@@ -105,9 +105,13 @@ static int hdr_test( ) {
        if( ! errors ) {
                fprintf( stderr, "<INFO> all msg header tests pass\n" );
        }
-       return !! errors;
+       return errors;
 }
 
 int main() {
-       return hdr_test();
+       int errors = 0;
+
+       errors +=  hdr_test();
+
+       return !! errors;
 }