Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53931 - trunk/libs/graph_parallel/test
From: jewillco_at_[hidden]
Date: 2009-06-15 10:12:28


Author: jewillco
Date: 2009-06-15 10:12:28 EDT (Mon, 15 Jun 2009)
New Revision: 53931
URL: http://svn.boost.org/trac/boost/changeset/53931

Log:
Fixed bugs in test case; refs #3134
Text files modified:
   trunk/libs/graph_parallel/test/distributed_property_map_test.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/graph_parallel/test/distributed_property_map_test.cpp
==============================================================================
--- trunk/libs/graph_parallel/test/distributed_property_map_test.cpp (original)
+++ trunk/libs/graph_parallel/test/distributed_property_map_test.cpp 2009-06-15 10:12:28 EDT (Mon, 15 Jun 2009)
@@ -182,7 +182,7 @@
   
   bool my_start_value = process_id(pg) % 2;
   int next_processor = (process_id(pg) + 1) % num_processes(pg);
- bool next_start_value = !my_start_value;
+ bool next_start_value = ((process_id(pg) + 1) % num_processes(pg)) % 2;
 
   // Initial color map: even-numbered processes are false,
   // odd-numbered processes are true
@@ -298,7 +298,7 @@
   // check next processor's strings
   for (int i = 0; i < n; ++i) {
     remote_key k(next_processor, i);
- BOOST_CHECK(get(strings, k) == std::string());
+ BOOST_CHECK(get(strings, k) == (num_processes(pg) == 1 ? my_start_string : std::string()));
   }
 
   if (process_id(pg) == 0) std::cerr << "OK.\nSynchronizing...";


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk