aboutsummaryrefslogtreecommitdiff
path: root/test/test-find-syms.c
diff options
context:
space:
mode:
authorcomex2015-01-20 19:49:44 -0500
committercomex2015-01-20 19:54:09 -0500
commitba44cef0bfa106de3a4406fdaed071461f87a6f3 (patch)
tree738895cae66ba2bf1e7369b8a17a2d8d4a433293 /test/test-find-syms.c
parentmore reorganization - move OS X/iOS specific stuff into its own directory (diff)
downloadsubstitute-ba44cef0bfa106de3a4406fdaed071461f87a6f3.tar.gz
progress on injection
Diffstat (limited to 'test/test-find-syms.c')
-rw-r--r--test/test-find-syms.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test-find-syms.c b/test/test-find-syms.c
index acd31ba..5dc1514 100644
--- a/test/test-find-syms.c
+++ b/test/test-find-syms.c
@@ -9,11 +9,10 @@ int main() {
struct substitute_image *im = substitute_open_image(foundation);
assert(im);
const char *names[] = { "_absolute_from_gregorian" };
- substitute_sym *syms[1];
- assert(!substitute_find_private_syms(im, names, syms, 1));
- assert(syms[0]);
+ int (*f)(int);
+ assert(!substitute_find_private_syms(im, names, (void **) &f, 1));
+ assert(f);
- int (*f)(int) = (int (*)(int)) substitute_sym_to_ptr(im, syms[0]);
assert(f(12345) < 0);
substitute_close_image(im);