libctf: new test of enum lookups with the _next iterator
authorNick Alcock <nick.alcock@oracle.com>
Tue, 5 Jan 2021 13:25:56 +0000 (13:25 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 5 Jan 2021 14:53:40 +0000 (14:53 +0000)
commit9bc769718db238c98f14aafc335426f47b52d4cd
tree9816bab19bde2c832446c0ba8b4f8c11d4bfabd6
parentc59e30ed1727135f8efb79890f2c458f73709757
libctf: new test of enum lookups with the _next iterator

I had reports that this doesn't work.  This test shows it working (and
also shows how annoying it is to do symbol lookup by name with the
present API: we need a ctf_arc_lookup_symbol_name for users that don't
already have a symtab handy).

libctf/ChangeLog
2021-01-05  Nick Alcock  <nick.alcock@oracle.com>

* testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
* testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
* testsuite/libctf-lookup/enum-symbol.c: New lookup test.
libctf/ChangeLog
libctf/testsuite/libctf-lookup/enum-symbol-ctf.c [new file with mode: 0644]
libctf/testsuite/libctf-lookup/enum-symbol.c [new file with mode: 0644]
libctf/testsuite/libctf-lookup/enum-symbol.lk [new file with mode: 0644]