From: Rishi k. K R. <ris...@li...> - 2010-03-31 13:47:43
|
The branch, master, has been updated via 02719d6f7e5cb252c0fcbfbaf26208d7196e46f2 (commit) from 18a3509e21b2a0455f276e1c4aa74174f5a93f7c (commit) - Log ----------------------------------------------------------------- commit 02719d6f7e5cb252c0fcbfbaf26208d7196e46f2 Author: Rishikesh K Rajak <ris...@li...> Date: Wed Mar 31 19:14:52 2010 +0530 Updated the documentation and return sensible message if testcase failed. ./runltp -f io_cd ... ERROR [line: open failed : No medium found ] ... After this patch the return error will be like this: ERROR [line: open failed /dev/cdrom : No medium found ] Which makes much more sense for user. Signed-off-by: Rishikesh K Rajak <ris...@li...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/io/stress_cd/stress_cd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/io/stress_cd/stress_cd.c b/testcases/kernel/io/stress_cd/stress_cd.c index e7d00b0..5e08ea9 100644 --- a/testcases/kernel/io/stress_cd/stress_cd.c +++ b/testcases/kernel/io/stress_cd/stress_cd.c @@ -222,7 +222,7 @@ int read_data (int num, unsigned long cksum) printf("\tThread [%d]: read_data()\n", num); if ((fd = open (file, O_RDONLY, NULL)) < 0) - sys_error ("open failed", __LINE__); + sys_error ("open failed /dev/cdrom", __LINE__); buffer = (char *) malloc (sizeof(char) * bufSize); assert (buffer); hooks/post-receive -- ltp |