"gdb.arch/i386-pkru.exp: probe PKRU support" shouldn't FAIL if not supported
authorPedro Alves <palves@redhat.com>
Wed, 8 Mar 2017 13:09:45 +0000 (13:09 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 8 Mar 2017 13:09:45 +0000 (13:09 +0000)
commit25dcbff6ef0088e080d92b3cbc346ae0b5071d9d
tree1340445c2d15c2f81ed714de1eb7ecbad83ec1e1
parentdc9366eb0592157e2125967690f0aed61b17bcf7
"gdb.arch/i386-pkru.exp: probe PKRU support" shouldn't FAIL if not supported

Currently I get:

 (gdb) print have_pkru()
 $1 = 0
 (gdb) FAIL: gdb.arch/i386-pkru.exp: probe PKRU support
 UNSUPPORTED: gdb.arch/i386-pkru.exp: processor does not support protection key feature.

Probing suceeded, so that should be a PASS -> UNSUPPORTED.

gdb/testsuite/ChangeLog:
2017-03-08  Pedro Alves  <palves@redhat.com>

* gdb.arch/i386-pkru.exp (probe PKRU support): Handle detecting
PKRU as not supported as a PASS.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/i386-pkru.exp