1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/testsuite/unittests/rpc_test_dummy_module.c
Andreas Schneider 90b69ba95d unittest: Add testsuite for is_known_pipename()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12780

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2017-06-06 18:36:06 +02:00

21 lines
321 B
C

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
int samba_init_module(void);
int 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 0;
}