Skip to content

Commit

Permalink
sendfile08: disable this test on kernel less than 2.6.33
Browse files Browse the repository at this point in the history
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]>
Acked-by: Cyril Hrubis <[email protected]>
  • Loading branch information
gaowanlong authored and metan-ucw committed Jun 26, 2013
1 parent 3123553 commit 3ca2875
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testcases/kernel/syscalls/sendfile/sendfile08.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 be socket before kernel");
tst_resm(TCONF, "2.6.33, see kernel commit cc56f7d");
tst_exit();
}

TEST_PAUSE;

tst_tmpdir();
Expand Down

0 comments on commit 3ca2875

Please sign in to comment.