[LTP] [PATCH] aio_cancel/3-1: increase BUF_SIZE

Kang Kai
2012-04-11T08:40:28Z

When do aio_cancel, all the aio_write operations have finished on some
platforms. That cause the case return UNRESOLVED. So increase the BUF_SIZE
to delay aio_write finish that make one aio_write operation can be
cancelled at least.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
---
.../conformance/interfaces/aio_cancel/3-1.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c
index 5b09d47..ebaa468 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c
@@ -44,7 +44,7 @@
#define TNAME "aio_cancel/3-1.c"

#define BUF_NB 128
-#define BUF_SIZE 1024
+#define BUF_SIZE (1024 * 1024)

static volatile int countdown = BUF_NB;
static volatile int canceled = 0;
--
1.7.5.4