aboutsummaryrefslogtreecommitdiff
path: root/test/test-inject.c
diff options
context:
space:
mode:
authorcomex2015-01-21 00:27:31 -0500
committercomex2015-01-21 00:27:31 -0500
commit21681b72291e3057577608aacf16a7841517135a (patch)
tree9a864fd2f9a7dc0e68a9d4e42aa191a8c50ae087 /test/test-inject.c
parent... (diff)
downloadsubstitute-21681b72291e3057577608aacf16a7841517135a.tar.gz
woo, inject seems to work on all platforms
Diffstat (limited to '')
-rw-r--r--test/test-inject.c6
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);
}