git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
unittests: Fix missing include of signal.h
[nivanova/samba-autobuild/.git]
/
testsuite
/
unittests
/
rpc_test_dummy_module.c
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
NTSTATUS samba_init_module(void)
9
{
10
int rc;
11
12
fprintf(stderr, "Test dummy executed!\n");
13
14
rc = setenv("UNITTEST_DUMMY_MODULE_LOADED", "TRUE", 1);
15
if (rc < 0) {
16
kill(getpid(), SIGILL);
17
exit(-1);
18
}
19
20
return NT_STATUS_OK;
21
}