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