summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>2004-10-06 19:54:09 +0000
committerChris Cleeland <chris.cleeland@gmail.com>2004-10-06 19:54:09 +0000
commitb3d2be0c2f9c5aca24e3288dc67d0d4b5121d317 (patch)
tree03e0fc8f4fed077d5b415beda68d3b5e2454d016
parent1da865076b4f67507e8e71892846d9c4421ee477 (diff)
downloadATCD-b3d2be0c2f9c5aca24e3288dc67d0d4b5121d317.tar.gz
Wed Oct 6 14:50:53 2004 Chris Cleeland <cleeland_c@ociweb.com>
Fixed Message_Queue_Test to work correctly on platforms like RH8.
-rw-r--r--ChangeLog10
-rw-r--r--tests/Message_Queue_Test.cpp3
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e9c247e4131..1b5b42df240 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Wed Oct 6 14:50:53 2004 Chris Cleeland <cleeland_c@ociweb.com>
+
+ * tests/Message_Queue_Test.cpp (iterator_test): Changed initial
+ HWM specification for the QUEUE size to match the size of
+ 'buffer'. It seems very strange to try to send each element of
+ 'buffer' into the queue, but to set QUEUE's HWM potentially
+ lower than sizeof(buffer). This makes the test run to
+ completion on platforms like RH8 where it had been failing for a
+ good long while.
+
Wed Oct 6 11:20:53 2004 J.T. Conklin <jtc@acorntoolworks.com>
* ace/Message_Queue.cpp:
diff --git a/tests/Message_Queue_Test.cpp b/tests/Message_Queue_Test.cpp
index af5f2faf0e6..966809b3e03 100644
--- a/tests/Message_Queue_Test.cpp
+++ b/tests/Message_Queue_Test.cpp
@@ -91,7 +91,8 @@ iterator_test (void)
// default of 16 Kb (defined by ACE_Message_Queue_Base::DEFAULT_HWM),
// so that the test runs on machines with 8Kb pagesizes.
#if !defined(_UNICOS)
- QUEUE queue (32 * 1024 * sizeof (ACE_TCHAR));
+ // QUEUE queue (32 * 1024 * sizeof (ACE_TCHAR));
+ QUEUE queue (sizeof(buffer));
#else
// this works on the Cray, where BUFSIZ is defined as 32Kb
QUEUE queue (ITERATIONS * BUFSIZ - 1);