From: Lancelot SIX <lsix@lancelotsix.com>
To: Guinevere Larsen <blarsen@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/testsuite: XFAIL some gdb.base/fileio.exp
Date: Fri, 11 Aug 2023 14:19:05 +0100 [thread overview]
Message-ID: <20230811131849.4inda7bmhiroknpl@octopus> (raw)
In-Reply-To: <20230811102134.2796842-1-blarsen@redhat.com>
Hi Guinevere,
I am not a big fan of the idea of running the testcases as root… but I
guess this is what you have when running within a container.
> +# Return 1 if the test is being run as root, 0 otherwise
> +
> +gdb_caching_proc root_user {} {
> + # ID outputs to stdout, we have to use exec to capture it here
> + set user [exec id]
Shouldn't it be `[remote_exec target]` instead? You are interested in
who will end up running the test executable, which can be different from
who runs `runtest` locally. I am not entirely sure if it should be
`host` or `target`. I would think `target`, but the testcase does use
`host`, which seems odd to me.
Also, what happens if the underlying filesystem is for example a NFS
mount? I am not sure being root will change what unlink can do, but I
have not tested. Maybe it is not worth trying to figure out all setups,
if it comes up one can always adjust the test.
Best,
Lancelot.
> +
> + regexp -all ".*uid=(\[0-9\]+).*" $user user uid
> +
> + return [expr $uid == 0]
> +}
> +
> # Always load compatibility stuff.
> load_lib future.exp
> --
> 2.41.0
>
next prev parent reply other threads:[~2023-08-11 13:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 10:21 Guinevere Larsen
2023-08-11 13:19 ` Lancelot SIX [this message]
2023-08-11 14:26 ` Guinevere Larsen
2023-08-14 10:24 ` [PATCH v2] " Guinevere Larsen
2023-09-14 13:12 ` [PING][PATCH " Guinevere Larsen
2023-09-26 13:21 ` [PATCH " Tom de Vries
2023-10-04 14:02 ` [PATCH v3] " Guinevere Larsen
2023-10-04 15:33 ` Tom de Vries
2023-10-04 15:47 ` Guinevere Larsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230811131849.4inda7bmhiroknpl@octopus \
--to=lsix@lancelotsix.com \
--cc=blarsen@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).