- snprintf(path, PATH_MAX, "%s/libhello.so", data_dir);
+ snprintf(path, PATH_MAX, "%s/libhello_so", data_dir);
fd = open(path, O_RDONLY);
ok(fd >= 0, "Open DWARF file %s", path);
fd = open(path, O_RDONLY);
ok(fd >= 0, "Open DWARF file %s", path);
dwarf_info = dwarf_begin(fd, DWARF_C_READ);
ok(dwarf_info != NULL, "dwarf_begin successful");
cu = bt_dwarf_cu_create(dwarf_info);
dwarf_info = dwarf_begin(fd, DWARF_C_READ);
ok(dwarf_info != NULL, "dwarf_begin successful");
cu = bt_dwarf_cu_create(dwarf_info);
ok(ret == 0, "bt_dwarf_cu_next successful");
die = bt_dwarf_die_create(cu);
ok(die != NULL, "bt_dwarf_die_create successful");
ok(ret == 0, "bt_dwarf_cu_next successful");
die = bt_dwarf_die_create(cu);
ok(die != NULL, "bt_dwarf_die_create successful");
/*
* Test bt_dwarf_die_next twice, as the code path is different
* for DIEs at depth 0 (just created) and other depths.
/*
* Test bt_dwarf_die_next twice, as the code path is different
* for DIEs at depth 0 (just created) and other depths.
/* Reset DIE to test dwarf_child */
bt_dwarf_die_destroy(die);
die = bt_dwarf_die_create(cu);
/* Reset DIE to test dwarf_child */
bt_dwarf_die_destroy(die);
die = bt_dwarf_die_create(cu);
ret = bt_dwarf_die_child(die);
ok(ret == 0, "bt_dwarf_die_child successful");
ret = bt_dwarf_die_child(die);
ok(ret == 0, "bt_dwarf_die_child successful");