LCOV - code coverage report
Current view: top level - tests/src - test0004.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 9 9
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                 :             :  * @brief Simple example test with external calls
       5                 :             :  */
       6                 :           1 : Return test0004(void)
       7                 :             : {
       8                 :           1 :         INITTEST;
       9                 :             : 
      10                 :           1 :         const char *command = "true > /dev/null";
      11                 :             : 
      12                 :           1 :         ASSERT(SUCCESS == external_call(command,NULL,NULL,COMPLETED,STDERR_SUPPRESS));
      13                 :             : 
      14                 :           1 :         command = "false";
      15                 :             : 
      16                 :           1 :         ASSERT(SUCCESS == external_call(command,NULL,NULL,FAILURE,STDOUT_SUPPRESS));
      17                 :             : 
      18                 :           1 :         command = "true";
      19                 :             : 
      20                 :           1 :         ASSERT(SUCCESS == external_call(command,NULL,NULL,COMPLETED,STDERR_SUPPRESS));
      21                 :             : 
      22                 :           1 :         RETURN_STATUS;
      23                 :             : }
        

Generated by: LCOV version 2.0-1