From: Andrea Cervesato via ltp <ltp@lists.linux.it>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v5] Add stat04 test
Date: Tue, 2 Jul 2024 15:30:01 +0200 [thread overview]
Message-ID: <948a7035-130b-4e4d-ac88-e5b9e37cc54c@suse.com> (raw)
In-Reply-To: <ZoP_-6z9LPTn8Yac@yuki>
Hi,
yes I got lost in the code and missed the point. I think I need more sleep..
Thanks for the reply,
Andrea
On 7/2/24 15:26, Cyril Hrubis wrote:
> Hi!
>> This test is basically a clone of the lstat03 test. I'm wondering if it
>> makes sense to have both, when we already have that one.
> You are stil missing the point of this test, the end result we expect is
> different for stat() and lstat(). The point I'm trying to make is that
> we should:
>
> 1. Make sure that as many attributes are diffent for the symlink and the
> symlink target for *both* stat() and lstat() tests, since if they are
> not made different the test does results are not conclusive at all
>
> 2. For stat() you should get same result on the file and symlink since
> stat actually follows the symlink then gets the data
>
> 3. For lstat() you should get different result on the file and symlink
> since lstat() *does not* follow the symlink before it gets the data
>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2024-07-02 13:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-17 14:44 [LTP] [PATCH v5] Add stat04 test Andrea Cervesato
2024-06-24 12:22 ` Cyril Hrubis
2024-07-02 13:10 ` Andrea Cervesato via ltp
2024-07-02 13:26 ` Cyril Hrubis
2024-07-02 13:30 ` Andrea Cervesato via ltp [this message]
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=948a7035-130b-4e4d-ac88-e5b9e37cc54c@suse.com \
--to=ltp@lists.linux.it \
--cc=andrea.cervesato@suse.com \
--cc=chrubis@suse.cz \
/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