summaryrefslogtreecommitdiff
path: root/cpp/src/tests/BrokerClusterCalls.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-10-21 19:05:01 +0000
committerAlan Conway <aconway@apache.org>2010-10-21 19:05:01 +0000
commit9be58b7519c45c682c36f8d70d8e9c7e1422a440 (patch)
tree1c7b7853aecea12187bde074f5710e62662ba23d /cpp/src/tests/BrokerClusterCalls.cpp
parent96df61d4f9c21fd330bdc2f30c571d047e4f722f (diff)
downloadqpid-python-9be58b7519c45c682c36f8d70d8e9c7e1422a440.tar.gz
Get rid of boost::regex in test code.
It was barely being used and it causes portability problems on older versions of boost. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1026103 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/BrokerClusterCalls.cpp')
-rw-r--r--cpp/src/tests/BrokerClusterCalls.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/tests/BrokerClusterCalls.cpp b/cpp/src/tests/BrokerClusterCalls.cpp
index 5cc2991c77..6cdd6fc9bf 100644
--- a/cpp/src/tests/BrokerClusterCalls.cpp
+++ b/cpp/src/tests/BrokerClusterCalls.cpp
@@ -36,14 +36,12 @@
#include "BrokerFixture.h"
#include <boost/assign.hpp>
#include <boost/format.hpp>
-#include <boost/regex.hpp>
using namespace std;
using namespace boost;
using namespace boost::assign;
using namespace qpid::messaging;
using boost::format;
-using boost::regex;
namespace qpid {
namespace tests {
@@ -297,10 +295,8 @@ QPID_AUTO_TEST_CASE(testFanout) {
sender.send(Message("a"));
f.s.sync();
BOOST_CHECK_EQUAL(h.at(i++), "routing(a)");
- char const * str = "enqueue(amq.fanout_r";
- int len = strlen(str);
- BOOST_CHECK_EQUAL(0, strncmp(str, h.at(i++).c_str(), len));
- BOOST_CHECK_EQUAL(0, strncmp(str, h.at(i++).c_str(), len));
+ BOOST_CHECK_EQUAL(0u, h.at(i++).find("enqueue(amq.fanout_r"));
+ BOOST_CHECK_EQUAL(0u, h.at(i++).find("enqueue(amq.fanout_r"));
BOOST_CHECK(h.at(i-1) != h.at(i-2));
BOOST_CHECK_EQUAL(h.at(i++), "routed(a)");
BOOST_CHECK_EQUAL(h.size(), i);