From: xuyang2018.jy@fujitsu.com <xuyang2018.jy@fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v3] syscalls/ipc: Check that whether if kernel supports *_STAT_ANY
Date: Thu, 1 Apr 2021 05:00:08 +0000 [thread overview]
Message-ID: <60655364.3080900@fujitsu.com> (raw)
In-Reply-To: <20210330063200.23654-1-zhaogongyi@huawei.com>
Hi Gongyi
Merged with following changes, thanks!
diff --git a/testcases/kernel/syscalls/ipc/msgctl/msgctl06.c b/testcases/kernel/syscalls/ipc/msgctl/msgctl06.c
index badbaaede..6f5476383 100644
--- a/testcases/kernel/syscalls/ipc/msgctl/msgctl06.c
+++ b/testcases/kernel/syscalls/ipc/msgctl/msgctl06.c
@@ -152,10 +152,8 @@ static void setup(void)
tst_brk(TCONF, "kernel doesn't support MSG_STAT_ANY");
else
tst_brk(TBROK | TTERRNO,
- "Current environment doesn't permit "
- "MSG_STAT_ANY");
+ "Current environment doesn't permit MSG_STAT_ANY");
}
-
}
static void cleanup(void)
diff --git a/testcases/kernel/syscalls/ipc/semctl/semctl09.c b/testcases/kernel/syscalls/ipc/semctl/semctl09.c
index b40f5ba8b..efbc67f33 100644
--- a/testcases/kernel/syscalls/ipc/semctl/semctl09.c
+++ b/testcases/kernel/syscalls/ipc/semctl/semctl09.c
@@ -196,18 +196,15 @@ static void setup(void)
TEST(do_semctl(sem_id, 0, SEM_STAT_ANY));
if (TST_RET == -1) {
- if (errno == EFAULT)
- tst_brk(TFAIL, "SEM_STAT_ANY doesn't pass the buffer "
- "specified by the caller to kernel");
+ if (TST_ERR == EFAULT)
+ tst_brk(TFAIL,
+ "SEM_STAT_ANY doesn't pass the buffer specified by the caller to kernel");
if (TST_ERR == EINVAL)
- tst_brk(TCONF, "kernel doesn't support "
- "SEM_STAT_ANY");
+ tst_brk(TCONF, "kernel doesn't support SEM_STAT_ANY");
else
tst_brk(TBROK | TTERRNO,
- "Current environment doesn't permit "
- "SEM_STAT_ANY");
+ "Current environment doesn't permit SEM_STAT_ANY");
}
-
}
static void cleanup(void)
diff --git a/testcases/kernel/syscalls/ipc/shmctl/shmctl04.c b/testcases/kernel/syscalls/ipc/shmctl/shmctl04.c
index 9a60c5170..724610ef0 100644
--- a/testcases/kernel/syscalls/ipc/shmctl/shmctl04.c
+++ b/testcases/kernel/syscalls/ipc/shmctl/shmctl04.c
@@ -164,12 +164,10 @@ static void setup(void)
TEST(shmctl(shm_id, SHM_STAT_ANY,&temp_ds));
if (TST_RET == -1) {
if (TST_ERR == EINVAL)
- tst_brk(TCONF, "kernel doesn't support "
- "SHM_STAT_ANY");
+ tst_brk(TCONF, "kernel doesn't support SHM_STAT_ANY");
else
tst_brk(TBROK | TTERRNO,
- "Current environment doesn't permit "
- "SHM_STAT_ANY");
+ "Current environment doesn't permit SHM_STAT_ANY");
}
}
prev parent reply other threads:[~2021-04-01 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 6:32 [LTP] [PATCH v3] syscalls/ipc: Check that whether if kernel supports *_STAT_ANY Zhao Gongyi
2021-04-01 5:00 ` xuyang2018.jy [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=60655364.3080900@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