----- Original Message -----
> From: "Wanlong Gao" <[email protected]>
> To: "LTP" <[email protected]>
> Cc: "Cyril Hrubis" <[email protected]>, "Caspar Zhang" 
> <[email protected]>, "Garrett Cooper" <[email protected]>,
> "Mike Frysinger" <[email protected]>, [email protected], "Wanlong Gao" 
> <[email protected]>
> Sent: Wednesday, 26 June, 2013 3:30:29 AM
> Subject: [PATCH] sendfile08: disable this test on kernel less than 2.6.33
> 
> After kernel commit cc56f7d, sendfile(2) can support any file refered
> "out_fd" instead of only socket.
> Since this test for general file refered "out_fd", so we disable this
> test on the kernel less than 2.6.33.
> 
> Signed-off-by: Wanlong Gao <[email protected]>

Reviewed-by: Jan Stancek <[email protected]>

Looks good to me.

Regards,
Jan

> ---
>  testcases/kernel/syscalls/sendfile/sendfile08.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/testcases/kernel/syscalls/sendfile/sendfile08.c
> b/testcases/kernel/syscalls/sendfile/sendfile08.c
> index 3d4caa3..748fcd4 100644
> --- a/testcases/kernel/syscalls/sendfile/sendfile08.c
> +++ b/testcases/kernel/syscalls/sendfile/sendfile08.c
> @@ -95,6 +95,13 @@ static void setup(void)
>  {
>       int ret;
>  
> +     /* Disable test if the version of the kernel is less than 2.6.33 */
> +     if ((tst_kvercmp(2, 6, 33)) < 0) {
> +             tst_resm(TCONF, "The out_fd must refer to a socket before 
> kernel");
> +             tst_resm(TCONF, "2.6.33, see kernel commit cc56f7d");
> +             tst_exit();
> +     }
> +
>       TEST_PAUSE;
>  
>       tst_tmpdir();
> --
> 1.8.3.1.448.gfb7dfaa
> 
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to