summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/tests/BrokerClusterCalls.cpp6
1 files changed, 4 insertions, 2 deletions
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);