From: xuyang2018.jy@fujitsu.com <xuyang2018.jy@fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/shmctl: Using TERRNO to macth errno
Date: Mon, 29 Mar 2021 02:31:32 +0000 [thread overview]
Message-ID: <60613C0B.4000604@fujitsu.com> (raw)
In-Reply-To: <F3D3F6AC3820BB4C9FCA340DB5C32CB40389DCCF@dggeml531-mbx.china.huawei.com>
Hi Gongyi
The SHM_STAT_ANY cmd was introduced since kernel 4.17. I guess we should
add check for it.
> Hi Li,
>
> Yes, I find the problem in my testing of qemu with kernel version 4.4
> and the config is vexpress_defconfig.
>
> Specifically as follow:
>
> tst_test.c:1294: TINFO: Timeout per run is 0h 05m 00s
>
> shmctl04.c:119: TINFO: Test SHM_STAT_ANY with nobody user
>
> TST_RET: 0 SHM_STAT_ANY: 15
>
> shmctl04.c:134: TFAIL: SHM_INFO haven't returned a valid index: EINVAL (22)
>
> shmctl04.c:150: TFAIL: Counted used = 0, used_ids = 1
>
> shmctl04.c:85: TPASS: used_ids = 1
>
> shmctl04.c:92: TPASS: shm_rss = 0
>
> shmctl04.c:99: TPASS: shm_swp = 0
>
> shmctl04.c:106: TPASS: shm_tot = 1
>
> shmctl04.c:119: TINFO: Test SHM_STAT_ANY with root user
>
> TST_RET: 0 SHM_STAT_ANY: 15
>
> shmctl04.c:134: TFAIL: SHM_INFO haven't returned a valid index: EINVAL (22)
>
> shmctl04.c:150: TFAIL: Counted used = 0, used_ids = 1
>
> shmctl04.c:85: TPASS: used_ids = 1
>
> shmctl04.c:92: TPASS: shm_rss = 0
>
> shmctl04.c:99: TPASS: shm_swp = 0
>
> shmctl04.c:106: TPASS: shm_tot = 1
>
> Summary:
>
> passed 8
>
> failed 4
>
> broken 0
>
> skipped 0
>
> warnings 0
>
next prev parent reply other threads:[~2021-03-29 2:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 2:22 [LTP] [PATCH] syscalls/shmctl: Using TERRNO to macth errno zhaogongyi
2021-03-29 2:31 ` xuyang2018.jy [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-29 13:55 zhaogongyi
2021-03-29 3:05 zhaogongyi
2021-03-29 2:44 zhaogongyi
2021-03-29 3:00 ` xuyang2018.jy
2021-03-29 1:56 zhaogongyi
2021-03-29 2:09 ` Li Wang
2021-03-27 10:23 Zhao Gongyi
2021-03-29 1:49 ` Li Wang
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=60613C0B.4000604@fujitsu.com \
--to=xuyang2018.jy@fujitsu.com \
--cc=ltp@lists.linux.it \
/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