Hey,
in file:
ltp-full-20080131/testcases/kernel/syscalls/sysconf/sysconf01.c
--------
else if (errno != EINVAL)
tst_resm(TFAIL,"sysconf correctly failed, but expected errno
(%i) != actual (%i)\n",EINVAL, errno);
else
--------
I personally think, it would be better to print out the "actual" return
code from sysconf call instead of the errno, which may lead to
confusion, because the actual return code from the failing sysconf is
probably not 0 (as errno is defined in previous context).
Maybe you want the patch.
Regards,
--
Patrick Kirsch - Quality Assurance Department
SUSE Linux Products GmbH GF: Markus Rex, HRB 16746 (AG Nuernberg)
--- ltp-full-20080131/testcases/kernel/syscalls/sysconf/sysconf01.c 2007-03-13 20:16:51.000000000 +0100
+++ ltp-full-20080131.new/testcases/kernel/syscalls/sysconf/sysconf01.c 2008-02-15 10:00:57.000000000 +0100
@@ -143,7 +143,7 @@
else if (errno != EINVAL)
tst_resm(TFAIL,
"sysconf correctly failed, but expected errno (%i) != actual (%i)\n",
- EINVAL, errno);
+ EINVAL, retval);
else
tst_resm(TPASS, "using invalid name");
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list