X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Flib%2Ftest_so_info.c;h=58d02180de764b55744a1390caa0eb5818b8f3db;hp=db4f239e5424d9cae8370539c204119d6f56b170;hb=1a4a1345c93d716d50cf10e4717f4cc895e313c6;hpb=394fd13b86bfd96bfb4b607447e9aad24f5b1090 diff --git a/tests/lib/test_so_info.c b/tests/lib/test_so_info.c index db4f239e..58d02180 100644 --- a/tests/lib/test_so_info.c +++ b/tests/lib/test_so_info.c @@ -45,7 +45,7 @@ #define FUNC_FOO_NAME_ELF "foo+0x24" #define BUILD_ID_LEN 20 -char *opt_debug_dir; +char *opt_debug_info_dir; static void test_so_info_build_id(const char *data_dir) @@ -64,7 +64,7 @@ void test_so_info_build_id(const char *data_dir) snprintf(path, PATH_MAX, "%s/%s", data_dir, SO_NAME_BUILD_ID); - so = so_info_create(path, SO_LOW_ADDR, SO_MEMSZ); + so = so_info_create(path, SO_LOW_ADDR, SO_MEMSZ, true); ok(so != NULL, "so_info_create succesful"); /* Test setting build_id */ @@ -105,7 +105,7 @@ void test_so_info_debug_link(const char *data_dir) snprintf(path, PATH_MAX, "%s/%s", data_dir, SO_NAME_DEBUG_LINK); - so = so_info_create(path, SO_LOW_ADDR, SO_MEMSZ); + so = so_info_create(path, SO_LOW_ADDR, SO_MEMSZ, true); ok(so != NULL, "so_info_create succesful"); /* Test setting debug link */ @@ -146,7 +146,7 @@ void test_so_info_elf(const char *data_dir) snprintf(path, PATH_MAX, "%s/%s", data_dir, SO_NAME_ELF); - so = so_info_create(path, SO_LOW_ADDR, SO_MEMSZ); + so = so_info_create(path, SO_LOW_ADDR, SO_MEMSZ, true); ok(so != NULL, "so_info_create succesful"); /* Test function name lookup (with ELF) */ @@ -183,7 +183,7 @@ void test_so_info(const char *data_dir) snprintf(path, PATH_MAX, "%s/%s", data_dir, SO_NAME); - so = so_info_create(path, SO_LOW_ADDR, SO_MEMSZ); + so = so_info_create(path, SO_LOW_ADDR, SO_MEMSZ, true); ok(so != NULL, "so_info_create succesful"); /* Test so_info_has_address */ @@ -249,16 +249,16 @@ int main(int argc, char **argv) if (argc != 2) { return EXIT_FAILURE; } else { - opt_debug_dir = argv[1]; + opt_debug_info_dir = argv[1]; } ret = so_info_init(); ok(ret == 0, "so_info_init succesful"); - test_so_info(opt_debug_dir); - test_so_info_elf(opt_debug_dir); - test_so_info_build_id(opt_debug_dir); - test_so_info_debug_link(opt_debug_dir); + test_so_info(opt_debug_info_dir); + test_so_info_elf(opt_debug_info_dir); + test_so_info_build_id(opt_debug_info_dir); + test_so_info_debug_link(opt_debug_info_dir); return EXIT_SUCCESS; }