From 21681b72291e3057577608aacf16a7841517135a Mon Sep 17 00:00:00 2001 From: comex Date: Wed, 21 Jan 2015 00:27:31 -0500 Subject: woo, inject seems to work on all platforms --- test/test-inject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test-inject.c b/test/test-inject.c index 6cf0404..53918db 100644 --- a/test/test-inject.c +++ b/test/test-inject.c @@ -6,12 +6,12 @@ #include int main(int argc, char **argv) { - if (argc <= 1) { - printf("usage: test-inject \n"); + if (argc <= 2) { + 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); + int ret = substitute_dlopen_in_pid(pid, argv[2], 0, &error); printf("ret=%d err=%s\n", ret, error); } -- cgit v1.2.3