From c2728b5b3416d3bb2dedb62366a8e87e05d8629a Mon Sep 17 00:00:00 2001 From: comex Date: Tue, 20 Jan 2015 21:48:38 -0500 Subject: ... --- test/test-inject.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test-inject.c (limited to 'test/test-inject.c') diff --git a/test/test-inject.c b/test/test-inject.c new file mode 100644 index 0000000..6cf0404 --- /dev/null +++ b/test/test-inject.c @@ -0,0 +1,17 @@ +#include "substitute.h" +#include "substitute-internal.h" + +#include +#include +#include + +int main(int argc, char **argv) { + if (argc <= 1) { + printf("usage: test-inject \n"); + return 1; + } + int pid = atoi(argv[1]); + char *error = NULL; + int ret = substitute_dlopen_in_pid(pid, "/tmp/hello", 0, &error); + printf("ret=%d err=%s\n", ret, error); +} -- cgit v1.2.3