gdb/testsuite: XFAIL some gdb.base/fileio.exp
authorGuinevere Larsen <blarsen@redhat.com>
Fri, 11 Aug 2023 09:58:11 +0000 (11:58 +0200)
committerGuinevere Larsen <blarsen@redhat.com>
Wed, 4 Oct 2023 15:43:23 +0000 (17:43 +0200)
commit1bdabb9e9fe8ac2c02640645a2ec42c496c5cb94
tree43ee8352e0d39a1ea587110956d738fa98aa175c
parent2aafdd4de60e02dfa7b04fc0c6cc33ee90257700
gdb/testsuite: XFAIL some gdb.base/fileio.exp

Some gdb.base/fileio.exp tests expect the inferior to not have write
access to some files. If the test is being run as root, this is never
possible. This commit adds a way to identify if the user is root and
xfails the tests that expect no write access.

Approved-By: Tom de Vries <tdevries@suse.de>
gdb/testsuite/gdb.base/fileio.exp
gdb/testsuite/lib/gdb.exp