From 2ab9357b35d2f8e4e217c570ef8b8c66b7e0a891 Mon Sep 17 00:00:00 2001 From: comex Date: Sat, 10 Jan 2015 15:40:42 -0500 Subject: simplify --- test/test-find-syms.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/test-find-syms.c (limited to 'test') diff --git a/test/test-find-syms.c b/test/test-find-syms.c new file mode 100644 index 0000000..0ad033d --- /dev/null +++ b/test/test-find-syms.c @@ -0,0 +1,13 @@ +#include +#include +#include +#include + +int main() { + const char *foundation = "/System/Library/Frameworks/Foundation.framework/Foundation"; + dlopen(foundation, RTLD_LAZY); + const char *names[] = { "_setshortValueWithMethod" }; + substitute_sym *syms[1]; + assert(!substitute_find_syms(foundation, names, syms, 1)); + printf("%p\n", syms[0]); +} -- cgit v1.2.3