From 96df61d4f9c21fd330bdc2f30c571d047e4f722f Mon Sep 17 00:00:00 2001 From: Michael Goulish Date: Thu, 21 Oct 2010 18:27:18 +0000 Subject: get rid of BOOST_REGEX git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1026096 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/BrokerClusterCalls.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/tests/BrokerClusterCalls.cpp b/cpp/src/tests/BrokerClusterCalls.cpp index 9a9cd063f5..5cc2991c77 100644 --- a/cpp/src/tests/BrokerClusterCalls.cpp +++ b/cpp/src/tests/BrokerClusterCalls.cpp @@ -297,8 +297,10 @@ QPID_AUTO_TEST_CASE(testFanout) { sender.send(Message("a")); f.s.sync(); BOOST_CHECK_EQUAL(h.at(i++), "routing(a)"); - BOOST_CHECK_REGEX("enqueue\\(amq.fanout_r[12], 1, a\\)", h.at(i++)); - BOOST_CHECK_REGEX("enqueue\\(amq.fanout_r[12], 1, a\\)", h.at(i++)); + 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(h.at(i-1) != h.at(i-2)); BOOST_CHECK_EQUAL(h.at(i++), "routed(a)"); BOOST_CHECK_EQUAL(h.size(), i); -- cgit v1.2.1