From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2] sched_setattr/sched_setattr01: Add new testcase for sched_setattr
Date: Wed, 2 Dec 2015 21:55:51 +0100 [thread overview]
Message-ID: <20151202205551.GA13131@rei.lan> (raw)
In-Reply-To: <5643267B.5020109@huawei.com>
Hi!
Pushed with following changes:
(To make the error reports more verbose)
@@ -90,8 +90,10 @@ static void sched_setattr_verify(const struct test_case *test)
TEST(sched_setattr(*(test->pid), test->a, test->flags));
if (TEST_RETURN != test->exp_return) {
- tst_resm(TFAIL | TTERRNO, "sched_setattr() return "
- "unexpectedly: expected: %d", test->exp_return);
+ tst_resm(TFAIL | TTERRNO, "sched_setattr(%i,attr,%u) "
+ "returned: %ld expected: %d",
+ *(test->pid), test->flags,
+ TEST_RETURN, test->exp_return);
return;
}
@@ -101,8 +103,9 @@ static void sched_setattr_verify(const struct test_case *test)
return;
}
- tst_resm(TFAIL | TTERRNO, "sched_setattr() return unexpectedly "
- ": expected: %d - %s",
+ tst_resm(TFAIL | TTERRNO, "sched_setattr(%i,attr,%u): "
+ "expected: %d - %s",
+ *(test->pid), test->flags,
test->exp_errno, tst_strerrno(test->exp_errno));
}
Thanks. And sorry for the delay.
--
Cyril Hrubis
chrubis@suse.cz
prev parent reply other threads:[~2015-12-02 20:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 9:19 [LTP] [PATCH] [PATCH] sched_setattr/sched_setattr01: Add new testcase for sched_setattr Cui Bixuan
2015-11-10 13:19 ` Cyril Hrubis
2015-11-11 11:28 ` [LTP] [PATCH v2] " Cui Bixuan
2015-11-28 9:33 ` Cui Bixuan
2015-12-02 20:55 ` Cyril Hrubis [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=20151202205551.GA13131@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