public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/31197] New: [gdb/testsuite, root] FAIL: gdb.base/gdb-index-err.exp: flag=: try to write index to a non-writable directory
@ 2023-12-29 5:41 vries at gcc dot gnu.org
2023-12-30 19:04 ` [Bug testsuite/31197] " cvs-commit at gcc dot gnu.org
2023-12-30 19:04 ` vries at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2023-12-29 5:41 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31197
Bug ID: 31197
Summary: [gdb/testsuite, root] FAIL:
gdb.base/gdb-index-err.exp: flag=: try to write index
to a non-writable directory
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
In a container with openSUSE tumbleweed, I see:
...
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
...
I suppose this is because I'm running as root.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug testsuite/31197] [gdb/testsuite, root] FAIL: gdb.base/gdb-index-err.exp: flag=: try to write index to a non-writable directory
2023-12-29 5:41 [Bug testsuite/31197] New: [gdb/testsuite, root] FAIL: gdb.base/gdb-index-err.exp: flag=: try to write index to a non-writable directory vries at gcc dot gnu.org
@ 2023-12-30 19:04 ` cvs-commit at gcc dot gnu.org
2023-12-30 19:04 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-30 19:04 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31197
--- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=11e73fe731c553171f09b48636dfc347cb3ac266
commit 11e73fe731c553171f09b48636dfc347cb3ac266
Author: Tom de Vries <tdevries@suse.de>
Date: Sat Dec 30 20:04:10 2023 +0100
[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
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug testsuite/31197] [gdb/testsuite, root] FAIL: gdb.base/gdb-index-err.exp: flag=: try to write index to a non-writable directory
2023-12-29 5:41 [Bug testsuite/31197] New: [gdb/testsuite, root] FAIL: gdb.base/gdb-index-err.exp: flag=: try to write index to a non-writable directory vries at gcc dot gnu.org
2023-12-30 19:04 ` [Bug testsuite/31197] " cvs-commit at gcc dot gnu.org
@ 2023-12-30 19:04 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2023-12-30 19:04 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31197
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |15.1
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-30 19:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-29 5:41 [Bug testsuite/31197] New: [gdb/testsuite, root] FAIL: gdb.base/gdb-index-err.exp: flag=: try to write index to a non-writable directory vries at gcc dot gnu.org
2023-12-30 19:04 ` [Bug testsuite/31197] " cvs-commit at gcc dot gnu.org
2023-12-30 19:04 ` vries at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).