Signed-off-by: Tang Chen <[email protected]>
---
.../syscalls/sched_setparam/sched_setparam03.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/sched_setparam/sched_setparam03.c
b/testcases/kernel/syscalls/sched_setparam/sched_setparam03.c
index eb70588..16f3d3a 100644
--- a/testcases/kernel/syscalls/sched_setparam/sched_setparam03.c
+++ b/testcases/kernel/syscalls/sched_setparam/sched_setparam03.c
@@ -121,7 +121,8 @@ int main(int ac, char **av)
TEST(sched_setparam(getppid(), ¶m));
if (TEST_RETURN == -1) {
- perror("sched_setparam returned %ld", TEST_RETURN);
+ fprintf(stderr, "sched_setparam returned %ld: "
+ "%s\n", TEST_RETURN, strerror(errno));
exit(0);
}
exit(1);
@@ -201,4 +202,5 @@ int verify_priority()
tst_resm(TWARN, "sched_getparam() failed");
return 0;
-}
\ No newline at end of file
+}
+
--
1.7.0.4
--
Best Regards,
Tang chen
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list