BTF testsuite: Remove explicit check on btm_type
authorIndu Bhagat <indu.bhagat@oracle.com>
Tue, 6 Jul 2021 23:11:47 +0000 (16:11 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Tue, 6 Jul 2021 23:13:29 +0000 (16:13 -0700)
commitd9e9532bb3bf5db4cd6afd49d343ede5b27c3c9f
tree8bb1c1718bfd52223faff60c3cacb93f8248abf8
parent97bcacfb5ac49afa4e305489dd110cc446451549
BTF testsuite: Remove explicit check on btm_type

The value of btm_type is the BTF type ID of the referred type.  The order in
which the BTF types are added can change across platforms and also as the code
evolves, hence changing the BTF type ID. As there is no direct and portable
method of testing that a BTF type refers to another BTF type of a specific
kind, remove the explicit check on btm_type.

This patch adjusts the testcase without affecting the test coverage as other
testcases already have similar constructs. It also fixes a subset of failures
as seen on Darwin.

2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>

gcc/testsuite/ChangeLog:

PR debug/101283
* gcc.dg/debug/btf/btf-bitfields-3.c: Remove the check on btm_type.
gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-3.c