From 4f5791ebd03eaec1c7da0865a383175b05102712 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:47:29 +0200 Subject: Adding upstream version 2:4.17.12+dfsg. Signed-off-by: Daniel Baumann --- testsuite/unittests/rpc_test_dummy_module.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 testsuite/unittests/rpc_test_dummy_module.c (limited to 'testsuite/unittests/rpc_test_dummy_module.c') diff --git a/testsuite/unittests/rpc_test_dummy_module.c b/testsuite/unittests/rpc_test_dummy_module.c new file mode 100644 index 0000000..2b4e6e2 --- /dev/null +++ b/testsuite/unittests/rpc_test_dummy_module.c @@ -0,0 +1,21 @@ +#include "replace.h" +#include +#include +#include +#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; +} -- cgit v1.2.3