diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test-inject.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <stdlib.h> int main(int argc, char **argv) { - if (argc <= 1) { - printf("usage: test-inject <pid>\n"); + if (argc <= 2) { + printf("usage: test-inject <pid> <dylib>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); } |