From: Steve Muckle <smuckle.linux@gmail.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/swapon03: do not fail if /proc/swaps is absent
Date: Tue, 20 Feb 2018 15:55:23 -0800 [thread overview]
Message-ID: <20180220235523.29663-1-smuckle.linux@gmail.com> (raw)
If the /proc/swaps file is absent the test should be skipped due
to incompatible configuration.
Signed-off-by: Steve Muckle <smuckle.linux@gmail.com>
---
testcases/kernel/syscalls/swapon/swapon03.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/swapon/swapon03.c b/testcases/kernel/syscalls/swapon/swapon03.c
index d3f73b044fe1..f690389c55a3 100644
--- a/testcases/kernel/syscalls/swapon/swapon03.c
+++ b/testcases/kernel/syscalls/swapon/swapon03.c
@@ -165,8 +165,7 @@ static int setup_swap(void)
/* This includes the first (header) line */
if ((fd = open("/proc/swaps", O_RDONLY)) == -1) {
- tst_brkm(TFAIL | TERRNO, cleanup,
- "Failed to find out existing number of swap files");
+ tst_brkm(TCONF, cleanup, "Unable to open /proc/swaps");
}
do {
char *p = buf;
--
2.13.6
next reply other threads:[~2018-02-20 23:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-20 23:55 Steve Muckle [this message]
2018-02-21 9:33 ` [LTP] [PATCH] syscalls/swapon03: do not fail if /proc/swaps is absent Richard Palethorpe
-- strict thread matches above, loose matches on Subject: below --
2018-04-25 1:28 Steve Muckle
2018-02-13 5:27 Steve Muckle
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=20180220235523.29663-1-smuckle.linux@gmail.com \
--to=smuckle.linux@gmail.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