]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: scfi: fix failing test on Solaris2
authorIndu Bhagat <indu.bhagat@oracle.com>
Fri, 9 Feb 2024 07:10:27 +0000 (23:10 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Fri, 9 Feb 2024 07:11:01 +0000 (23:11 -0800)
commit272b9416f3ce062de0c28f8dfa2a4112993dd77c
tree08fa7d74a913770951bf486fb703fda3514ae986
parent74f03a0ed2fed504f037711aee75dd1a00d15b17
gas: scfi: fix failing test on Solaris2

It has been observed that the run of scfi-unsupported-1 test with --x32
arg on a Solaris2 x86_64 system fails:

Executing on host: sh -c {../as-new  --x32 --scfi=experimental \
          <...>/scfi-unsupported-1.s 2>&1}  /dev/null dump.out (timeout = 300)
Assembler messages:
Fatal error: no compiled in support for 32bit x86_64
regexp_diff match failure
regexp "^Fatal error: SCFI is not supported for this ABI$"
line   "Fatal error: no compiled in support for 32bit x86_64"
FAIL: x86_64 scfi-unsupported-1

Fix the above by adding a check for --x32 support before running the
test.  While at it, also include a similar check for --32 support.

gas/testsuite/
* gas/scfi/x86_64/scfi-x86-64.exp: Add gas_x32_check and
gas_32_check.  Conditionalize the execution of affected
testcases.
gas/testsuite/gas/scfi/x86_64/scfi-x86-64.exp