diff options
author | Tom de Vries <tdevries@suse.de> | 2023-12-30 20:04:10 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2023-12-30 20:04:10 +0100 |
commit | 11e73fe731c553171f09b48636dfc347cb3ac266 (patch) | |
tree | c911454d4595a5a3a905cec3ed2336515bcc8361 /COPYING | |
parent | 3838f0bc107c48765059b3ca615f02077d961f39 (diff) | |
download | gdb-11e73fe731c553171f09b48636dfc347cb3ac266.zip gdb-11e73fe731c553171f09b48636dfc347cb3ac266.tar.gz gdb-11e73fe731c553171f09b48636dfc347cb3ac266.tar.bz2 |
[gdb/testsuite] Fix gdb.base/gdb-index-err.exp for root user
When running test-case gdb.base/gdb-index-err.exp in a container as root user,
I run into:
...
FAIL: gdb.base/gdb-index-err.exp: flag=: \
try to write index to a non-writable directory
FAIL: gdb.base/gdb-index-err.exp: flag=-dwarf-5: \
try to write index to a non-writable directory
...
The test-case creates a directory without write permissions:
...
$ ls -ald private
dr-xr-xr-x 2 root root 4096 Dec 29 06:26 private/
...
but apparently the root user is still able to write in it.
Fix this by making the test unsupported for the root user.
Tested on x86_64-linux.
Reviewed-By: Lancelot SIX <lancelot.six@amd.com>
PR testsuite/31197
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31197
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions