[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Allow tests/test-nonblocking-pipe.sh test to pass on PowerPC.
From: |
Prerna Saxena |
Subject: |
[PATCH] Allow tests/test-nonblocking-pipe.sh test to pass on PowerPC. |
Date: |
Mon, 12 Dec 2011 20:30:36 +0530 |
From: Prerna Saxena <address@hidden>
Date: Mon, 12 Dec 2011 16:00:04 +0530
Subject: [PATCH] Allow tests/test-nonblocking-pipe.sh test to pass on
PowerPC.
On PowerPC, pipe_max_size is 1048576 bytes.
At present, tests/test-nonblocking-pipe fails for a blocking write and
non-blocking read case. This is because the default data_block_size for
generic linux host is rather small and can be easily accommodated in
a single write operation.(The blocking write can empty all its data in
the pipe in one go.)
This fix adjusts the value of PIPE_DATA_BLOCK_SIZE to 1100000 (ie,
greater than pipe_max_size) for powerpc kernel so that test
case 2 (blocking pipe write, non-blocking read) passes on ppc64.
Signed-off-by: Prerna Saxena <address@hidden>
---
tests/test-nonblocking-pipe.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tests/test-nonblocking-pipe.h b/tests/test-nonblocking-pipe.h
index a7be063..187dbe3 100644
--- a/tests/test-nonblocking-pipe.h
+++ b/tests/test-nonblocking-pipe.h
@@ -23,6 +23,7 @@
Linux >= 63489
Linux/SPARC >= 126977
Linux/IA-64, Linux/MIPS >= 253953
+ Linux/PPC64 >= 1048576
FreeBSD, OpenBSD, MacOS X >= 65537
AIX >= 32769
HP-UX >= 8193
@@ -37,6 +38,8 @@
# define PIPE_DATA_BLOCK_SIZE 270000
#elif defined __linux__ && defined __sparc__
# define PIPE_DATA_BLOCK_SIZE 140000
+#elif defined __linux__ && defined __powerpc__
+# define PIPE_DATA_BLOCK_SIZE 1100000
#else
# define PIPE_DATA_BLOCK_SIZE 70000
#endif
--
1.7.7
--
Prerna Saxena
Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India
- [PATCH] Allow tests/test-nonblocking-pipe.sh test to pass on PowerPC.,
Prerna Saxena <=