On Tue, 2009-09-15 at 17:28 +0200, Geert Uytterhoeven wrote:
> When the quotactl syscall fails, quotactl01 crashes with a segmentation fault
> due to an incorrect printf()-style format.
>
> Signed-off-by: Geert Uytterhoeven <[email protected]>
Thanks.
Regards--
Subrata
> --
> v2: Use TTERRNO
>
> testcases/kernel/syscalls/quotactl/quotactl01.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/quotactl/quotactl01.c
> b/testcases/kernel/syscalls/quotactl/quotactl01.c
> index 6800a25..fe8df33 100644
> --- a/testcases/kernel/syscalls/quotactl/quotactl01.c
> +++ b/testcases/kernel/syscalls/quotactl/quotactl01.c
> @@ -147,7 +147,7 @@ int main(int ac, char **av) {
> for (i = 0; i <= 7; i++){
> TEST(retval = syscall(__NR_quotactl, cmd[i], (const
> char *)NULL, id, (caddr_t)NULL));
> if(TEST_RETURN != 0){
> - tst_resm(TFAIL, "%s failed - errno = %d : %s
> ...cmderror=%s", TCID, TEST_ERRNO, strerror(TEST_ERRNO),cmd[i]);
> + tst_resm(TFAIL|TTERRNO, "%s failed, cmd=0x%x",
> TCID, cmd[i]);
> }else{
> tst_resm(TPASS, "quotactl call succeeded");
> }
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list