1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/testsuite/unittests/rpc_test_dummy_module.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
381 B
C
Raw Normal View History

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