From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] move_pages04: fix zero page status code for kernels >= 4.3
Date: Wed, 5 Oct 2016 17:47:35 +0200 [thread overview]
Message-ID: <20161005154735.GE23476@rei.lan> (raw)
In-Reply-To: <896d677024a4273f2d762aaef1a020c6b08e186b.1475501850.git.jstancek@redhat.com>
Hi!
> - if (status[UNTOUCHED_PAGE] == -ENOENT)
> - tst_resm(TPASS, "status[%d] set to expected -ENOENT",
> + if (status[UNTOUCHED_PAGE] == exp_status)
> + tst_resm(TPASS, "status[%d] has expected value",
> UNTOUCHED_PAGE);
> else
> - tst_resm(TFAIL, "status[%d] is %d", UNTOUCHED_PAGE,
> - status[UNTOUCHED_PAGE]);
> + tst_resm(TFAIL, "status[%d] is %d, expected %d",
> + UNTOUCHED_PAGE, status[UNTOUCHED_PAGE],
> + exp_status);
It would be a bit better to print the errno with tst_strerrno() in both
cases. I.e. tst_strerrno(-exp_status) and
tst_strerrno(-status[UNTOUCHED_PAGE]) otherwise this looks obviously
fine.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2016-10-05 15:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-03 13:43 [LTP] [PATCH] move_pages04: fix zero page status code for kernels >= 4.3 Jan Stancek
2016-10-05 15:47 ` Cyril Hrubis [this message]
2016-10-06 7:24 ` Jan Stancek
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=20161005154735.GE23476@rei.lan \
--to=chrubis@suse.cz \
--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