LCOV - code coverage report
Current view: top level - tests/src - test0005.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 6 6
Test Date: 2026-03-31 13:51:38 Functions: 100.0 % 1 1
Branches: - 0 0

             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                 :           1 :         const char *stderr_command = "echo Example message to STDERR that should be suppressed 1>&2";
      12                 :             : 
      13                 :             :         // Example of suppress messages to STDERR
      14                 :           1 :         ASSERT(SUCCESS == external_call(stderr_command,NULL,NULL,COMPLETED,STDERR_SUPPRESS));
      15                 :             : 
      16                 :             :         // Example of NOT suppressed messages to STDERR
      17                 :           1 :         ASSERT(SUCCESS == external_call(stderr_command,NULL,NULL,COMPLETED,STDERR_ALLOW));
      18                 :             : 
      19                 :           1 :         RETURN_STATUS;
      20                 :             : }
        

Generated by: LCOV version 2.0-1