Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: skip a test when CTF is built with dwarf2ctf
Bitfields are somewhat broken in dwarf2ctf and unlikely ever to be fixed, so skip a test that checks if they work. This requires detecting, not whether DTrace was built with libctf, but whether the CTF was built with the toolchain CTF machinery. We can reliably detect this by checking the CTF version number: 3 (CTF_VERSION_2) is libdtrace-ctf 1.0 / dwarf2ctf, while all versions of binutils CTF in anything like current use are CTF_VERSION_3. (Unreleased versions of libdtrace-ctf can emit CTF_VERSION_3, but this is not in use to build kernels anywhere I know of.) Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information