LCOV - code coverage report
Current view: top level - tests/src - test0005.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 7 7
Test Date: 2026-03-01 04:31:48 Functions: 100.0 % 1 1
Branches: 44.4 % 18 8

             Branch data     Line data    Source code
       1                 :             : #include "sute.h"
       2                 :             : 
       3                 :             : /**
       4                 :             :  *
       5                 :             :  * Another simple test case
       6                 :             :  *
       7                 :             :  */
       8                 :           1 : Return test0005(void)
       9                 :             : {
      10                 :           1 :         INITTEST;
      11                 :             : 
      12                 :             :         // Example of suppress messages to STDERR
      13                 :           1 :         const char *command = "echo Example message to STDERR that should be suppressed 1>&2";
      14                 :             : 
      15   [ +  -  +  - ]:           1 :         ASSERT(SUCCESS == external_call(command,NULL,NULL,COMPLETED,STDERR_SUPPRESS));
      16                 :             : 
      17                 :             :         // Example of NOT suppressed messages to STDERR
      18                 :           1 :         command = "echo Example message to STDERR that should be suppressed 1>&2";
      19                 :             : 
      20   [ +  -  +  - ]:           1 :         ASSERT(SUCCESS == external_call(command,NULL,NULL,COMPLETED,STDERR_ALLOW));
      21                 :             : 
      22   [ +  -  -  +  :           1 :         RETURN_STATUS;
          -  -  -  +  +  
                      - ]
      23                 :             : }
        

Generated by: LCOV version 2.0-1