From: Cristian Greco <cristian@regolo.cc>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] kill05: fix regression
Date: Fri, 4 Mar 2011 17:09:32 +0100 [thread overview]
Message-ID: <20110304170932.19819907@regolo> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 966 bytes --]
Hi,
this should fix a regression in kill05.
Why did tst_resm/tst_exit get replaced by perror/exit in 84f181fd?
Signed-off-by: Cristian Greco <cristian@regolo.cc>
---
testcases/kernel/syscalls/kill/kill05.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/syscalls/kill/kill05.c
b/testcases/kernel/syscalls/kill/kill05.c index 0193100..ac5dc86 100644
--- a/testcases/kernel/syscalls/kill/kill05.c
+++ b/testcases/kernel/syscalls/kill/kill05.c
@@ -121,11 +121,12 @@ int main(int ac, char **av)
tst_brkm(TBROK, cleanup, "Fork failed");
else if (pid == 0)
do_master_child(av);
-
+ else {
if (waitpid(pid, &status, 0) == -1)
tst_resm(TBROK|TERRNO, "waitpid failed");
else if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
tst_resm(TFAIL, "child exited abnormally");
+ }
cleanup();
tst_exit();
}
--
1.7.4.1
Thanks,
--
Cristian Greco
GPG key ID: 0xCF4D32E4
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 309 bytes --]
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2011-03-04 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-04 16:09 Cristian Greco [this message]
2011-03-04 16:29 ` [LTP] [PATCH] kill05: fix regression Garrett Cooper
2011-03-04 16:30 ` Garrett Cooper
2011-03-05 0:06 ` Cristian Greco
2011-04-26 15:59 ` Cyril Hrubis
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=20110304170932.19819907@regolo \
--to=cristian@regolo.cc \
--cc=ltp-list@lists.sourceforge.net \
/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