On Fri, 2009-03-13 at 18:23 +0800, CAI Qian wrote: 
> Hi,
> 
> This patch fixes an error that use the return of the function instead of
> errno. In addition, errno has been saved first to avoid to be changed by
> tst_resm().
> 
> Signed-off-by: CAI Qian <[email protected]>

Looks good too, but, failed to apply here as well:

patching file testcases/kernel/syscalls/sysconf/sysconf01.c
Hunk #1 FAILED at 134.
1 out of 1 hunk FAILED -- saving rejects to file
testcases/kernel/syscalls/sysconf/sysconf01.c.rej

Kindly resend.

Regards--
Subrata

> 
> --- testcases/kernel/syscalls/sysconf/sysconf01.c.orig  2009-03-13 
> 18:13:59.000000000 +0800
> +++ testcases/kernel/syscalls/sysconf/sysconf01.c       2009-03-13 
> 18:17:34.000000000 +0800
> @@ -134,17 +134,18 @@
> 
>         /* 56 */
>         {
> -               int retval;
> +               int retval, actual;
>                 errno = 0;
>                 retval = sysconf(INVAL_FLAG);
> +               actual = errno;
>                 if (retval != -1)
>                         tst_resm(TFAIL,
>                                 "sysconf succeeded for invalid flag (%i), 
> retval=%d errno=%d: %s",
> -                               INVAL_FLAG, retval, errno, strerror(errno));
> -               else if (errno != EINVAL)
> +                               INVAL_FLAG, retval, actual, strerror(actual));
> +               else if (actual != EINVAL)
>                         tst_resm(TFAIL,
>                                 "sysconf correctly failed, but expected errno 
> (%i) != actual (%i)\n",
> -                               EINVAL, retval);
> +                               EINVAL, actual);
>                 else
>                         tst_resm(TPASS, "using invalid name");
>         }
> 
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to