Skip to content

Commit

Permalink
(do_test): Add arbitrary factor to make sure aio_write blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Apr 27, 2005
1 parent 84060ba commit 6bdfb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nptl/tst-cancel17.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2003 Free Software Foundation, Inc.
/* Copyright (C) 2003, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
Expand Down Expand Up @@ -228,7 +228,7 @@ do_test (void)

size_t len2 = fpathconf (fds[1], _PC_PIPE_BUF);
size_t page_size = sysconf (_SC_PAGESIZE);
len2 = (len2 < page_size ? page_size : len2) + sizeof (mem) + 1;
len2 = 20 * (len2 < page_size ? page_size : len2) + sizeof (mem) + 1;
char *mem2 = malloc (len2);
if (mem2 == NULL)
{
Expand Down

0 comments on commit 6bdfb89

Please sign in to comment.