CTF testsuite: Remove explicit check on ctv_typeidx
authorIndu Bhagat <indu.bhagat@oracle.com>
Tue, 6 Jul 2021 23:02:38 +0000 (16:02 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Tue, 6 Jul 2021 23:02:38 +0000 (16:02 -0700)
commit97bcacfb5ac49afa4e305489dd110cc446451549
tree7d280735a354cfda1d4e4d25e3b459c88d94bd29
parente8db5f70f27b6de8139339ef1866eaa153c2bf67
CTF testsuite: Remove explicit check on ctv_typeidx

The value of ctv_typeidx is the CTF type ID of the data type of the associated
variable.  The order in which the CTF types are added can change across
platforms and also as the code evolves, hence changing the CTF type ID. As
there is no direct and portable method of testing that the data type of a CTF
variable is of a specific kind, remove the check on ctv_typeidx.

This 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/ctf/ctf-attr-mode-1.c: Remove the check for ctv_typeidx.
gcc/testsuite/gcc.dg/debug/ctf/ctf-attr-mode-1.c