CTF forward test needs adjusting after 13278
The CTF forward declaration tests says:
* In test-forward.c barp is declared as a union, not a struct. However, today * the CTF tooling does not contain enough information to know whether a forward * declaration was for a struct or a union, only that it was a forward. * Therefore, the type printing information assumes at the moment that the type * is a struct. In a future revision of the CTF type data, we should encode this * information in the equivalent of ctt_info so we can properly distinguish * between these.
13278 fixed this and the type of a forward declaration is now known. The test needs adjusting.
The test now fails with:
check-forward-32: failed to lookup type struct bar * for symbol barp check-forward-32: failed to lookup type struct bar * check-forward-32: member data has bad type, found union bar *, expected struct bar * TEST FAILED: check for /opt/util-tests/tests/ctf/test-forward.c, /opt/util-tests/tests/ctf/check-forward-32, failed
Updated by Electric Monk 2 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 986529380f11a23c3c6de33e5cea6611d4abe648 Author: Andy Fiddaman <email@example.com> Date: 2020-11-20T22:03:19.000Z 13323 CTF forward test needs adjusting after 13278 Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Approved by: Gordon Ross <firstname.lastname@example.org>