From: Cyril H. <su...@li...> - 2012-02-29 16:50:20
|
The branch, master, has been updated via e136f5c2e52726d294838b9e366ad29a6e14e1b7 (commit) via 46c7618129ac164ba3b88039cdf003c5e362d50c (commit) from c406ee490577a083e118e7fa38ac6822fcf63bf6 (commit) - Log ----------------------------------------------------------------- commit e136f5c2e52726d294838b9e366ad29a6e14e1b7 Merge: c406ee4 46c7618 Author: Cyril Hrubis <ch...@su...> Date: Wed Feb 29 17:49:46 2012 +0100 Merge ../ltp-dev commit 46c7618129ac164ba3b88039cdf003c5e362d50c Author: Salvatore CRO <sal...@st...> Date: Tue Feb 14 11:33:01 2012 +0100 clone06: legitimate zero as sprintf return value A return value of 0 for sprintf is acceptable as it means zero byte read. Indeed errno is not set in this case thus no warning messages must be issued. Signed-off-by: Salvatore Cro <sal...@st...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/syscalls/clone/clone06.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/syscalls/clone/clone06.c b/testcases/kernel/syscalls/clone/clone06.c index 1734776..3cf2e95 100644 --- a/testcases/kernel/syscalls/clone/clone06.c +++ b/testcases/kernel/syscalls/clone/clone06.c @@ -199,7 +199,7 @@ int child_environ(void) tst_brkm(TBROK|TERRNO, cleanup, "close(pfd[0]) failed"); } - if ((sprintf(var, "%s", getenv("TERM") ? : "")) <= 0) { + if ((sprintf(var, "%s", getenv("TERM") ? : "")) < 0) { tst_resm(TWARN|TERRNO, "sprintf() failed"); } hooks/post-receive -- ltp |