diff options
Diffstat (limited to 'libctf/testsuite/libctf-regression')
5 files changed, 5 insertions, 8 deletions
diff --git a/libctf/testsuite/libctf-regression/nonstatic-var-section-ld-r.c b/libctf/testsuite/libctf-regression/nonstatic-var-section-ld-r.c index 2fa761a..6ae2ea5 100644 --- a/libctf/testsuite/libctf-regression/nonstatic-var-section-ld-r.c +++ b/libctf/testsuite/libctf-regression/nonstatic-var-section-ld-r.c @@ -31,12 +31,12 @@ main (int argc, char *argv[]) ld -r link. */ if ((foo_type = ctf_lookup_variable (fp, "foo")) == CTF_ERR) - printf ("Cannot look up foo\n", ctf_errmsg (ctf_errno (fp))); + printf ("Cannot look up foo: %s\n", ctf_errmsg (ctf_errno (fp))); else printf ("foo is of type %lx\n", foo_type); if ((bar_type = ctf_lookup_variable (fp, "bar")) == CTF_ERR) - printf ("Cannot look up bar\n", ctf_errmsg (ctf_errno (fp))); + printf ("Cannot look up bar: %s\n", ctf_errmsg (ctf_errno (fp))); else printf ("bar is of type %lx\n", bar_type); diff --git a/libctf/testsuite/libctf-regression/nonstatic-var-section-ld.c b/libctf/testsuite/libctf-regression/nonstatic-var-section-ld.c index 4e3a748..93988eb 100644 --- a/libctf/testsuite/libctf-regression/nonstatic-var-section-ld.c +++ b/libctf/testsuite/libctf-regression/nonstatic-var-section-ld.c @@ -30,12 +30,12 @@ main (int argc, char *argv[]) should have been erased. */ if ((foo_type = ctf_lookup_variable (fp, "foo")) == CTF_ERR) - printf ("Cannot look up foo\n", ctf_errmsg (ctf_errno (fp))); + printf ("Cannot look up foo: %s\n", ctf_errmsg (ctf_errno (fp))); else printf ("foo is of type %lx\n", foo_type); if ((bar_type = ctf_lookup_variable (fp, "bar")) == CTF_ERR) - printf ("Cannot look up bar\n", ctf_errmsg (ctf_errno (fp))); + printf ("Cannot look up bar: %s\n", ctf_errmsg (ctf_errno (fp))); else printf ("bar is of type %lx\n", bar_type); diff --git a/libctf/testsuite/libctf-regression/nonstatic-var-section-ld.lk b/libctf/testsuite/libctf-regression/nonstatic-var-section-ld.lk index edb397a..2ea4d32 100644 --- a/libctf/testsuite/libctf-regression/nonstatic-var-section-ld.lk +++ b/libctf/testsuite/libctf-regression/nonstatic-var-section-ld.lk @@ -2,5 +2,5 @@ # link: on # link_flags: -Wl,--ctf-variables foo is of type [0-9a-f]* -Cannot look up bar +Cannot look up bar: No type information available for symbol. foo missing from the data object section diff --git a/libctf/testsuite/libctf-regression/pptrtab.c b/libctf/testsuite/libctf-regression/pptrtab.c index fe1b8fe..2ef5f9c 100644 --- a/libctf/testsuite/libctf-regression/pptrtab.c +++ b/libctf/testsuite/libctf-regression/pptrtab.c @@ -10,7 +10,6 @@ main (int argc, char *argv[]) ctf_next_t *i = NULL; ctf_id_t type; const char *arcname; - char *type_name; int err; if (argc != 2) diff --git a/libctf/testsuite/libctf-regression/type-add-unnamed-struct.c b/libctf/testsuite/libctf-regression/type-add-unnamed-struct.c index 16ff094..cf10804 100644 --- a/libctf/testsuite/libctf-regression/type-add-unnamed-struct.c +++ b/libctf/testsuite/libctf-regression/type-add-unnamed-struct.c @@ -8,10 +8,8 @@ main (int argc, char *argv[]) ctf_dict_t *fp; ctf_archive_t *ctf; ctf_dict_t *dyn; - ctf_next_t *i = NULL; ctf_id_t type; ctf_id_t newtype; - const char *memb; ctf_membinfo_t mi; const char *membs[] = { "bar", "baz", "foo", NULL }; const char **walk; |