1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/testsuite/unittests/rpc_test_dummy_module.c
Lumir Balhar 09104dc417 unittests: Fix missing include of signal.h
Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Oct 18 14:24:39 CEST 2017 on sn-devel-144
2017-10-18 14:24:39 +02:00

22 lines
381 B
C

#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;
}