LCOV - code coverage report
Current view: top level - testsuite/unittests - rpc_test_dummy_module.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 6 8 75.0 %
Date: 2024-04-21 15:09:00 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include "replace.h"
       2             : #include <sys/types.h>
       3             : #include <signal.h>
       4             : #include <unistd.h>
       5             : #include "libcli/util/ntstatus.h"
       6             : 
       7             : NTSTATUS samba_init_module(void);
       8           1 : NTSTATUS samba_init_module(void)
       9             : {
      10           1 :         int rc;
      11             : 
      12           1 :         fprintf(stderr, "Test dummy executed!\n");
      13             : 
      14           1 :         rc = setenv("UNITTEST_DUMMY_MODULE_LOADED", "TRUE", 1);
      15           1 :         if (rc < 0) {
      16           0 :                 kill(getpid(), SIGILL);
      17           0 :                 exit(-1);
      18             :         }
      19             : 
      20           1 :         return NT_STATUS_OK;
      21             : }

Generated by: LCOV version 1.14