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

             Branch data     Line data    Source code
       1                 :             : #include "sute.h"
       2                 :             : 
       3                 :           1 : Return clean(void)
       4                 :             : {
       5                 :             :         /* The status that will be returned before exiting */
       6                 :             :         /* By default, assumes the function ran without errors */
       7                 :           1 :         Return status = SUCCESS;
       8                 :             : 
       9                 :             :         // Clear up all temporary files
      10                 :           1 :         const char *command = "chmod -R a+rwX ${TMPDIR};";
      11                 :             : 
      12   [ +  -  -  + ]:           1 :         run(external_call(command,NULL,NULL,COMPLETED,ALLOW_BOTH));
      13                 :             :         // Empty relative path resolves to TMPDIR itself, so this removes the whole temporary test root
      14   [ +  -  -  + ]:           1 :         run(delete_path(""));
      15                 :             : 
      16         [ +  - ]:           1 :         if(SUCCESS == status)
      17                 :             :         {
      18                 :           1 :                 echo(EXTEND,"finished");
      19                 :             :         }
      20                 :             : 
      21   [ -  +  -  -  :           1 :         deliver(status);
             -  +  +  - ]
      22                 :             : }
        

Generated by: LCOV version 2.0-1