summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-11-07 00:23:50 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-11-07 00:23:50 +0000
commit065a0d59358c3a1124ff21ee5dfdd11b475b95da (patch)
tree629648d2f8a472dcbd8c083689155bfaf8c8a475 /qpid/cpp
parentea7a7cc8a7d3149dfa7d8f848e3650dbf68b5243 (diff)
downloadqpid-python-065a0d59358c3a1124ff21ee5dfdd11b475b95da.tar.gz
QPID-5304: Allow c++ unit tests to run if XML_LIB env var not set
(The tests for the xml exchange will obviously fail, but at least you can run anything else you might have been interested in) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1539505 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/tests/XmlClientSessionTest.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/XmlClientSessionTest.cpp b/qpid/cpp/src/tests/XmlClientSessionTest.cpp
index b94c35ece0..49825e011e 100644
--- a/qpid/cpp/src/tests/XmlClientSessionTest.cpp
+++ b/qpid/cpp/src/tests/XmlClientSessionTest.cpp
@@ -42,22 +42,27 @@
namespace qpid {
namespace tests {
-QPID_AUTO_TEST_SUITE(XmlClientSessionTest)
+struct XmlFixture {
+ XmlFixture() {
+ qpid::sys::Shlib shlib(getLibPath("XML_LIB"));
+ }
+ ~XmlFixture() {}
+};
+
+BOOST_FIXTURE_TEST_SUITE(XmlClientSessionTest, XmlFixture)
using namespace qpid::client;
using namespace qpid::client::arg;
using namespace qpid::framing;
using namespace qpid;
-using qpid::sys::Shlib;
+
using qpid::sys::Monitor;
using std::string;
using std::cout;
using std::endl;
-Shlib shlib(getLibPath("XML_LIB"));
-
class SubscribedLocalQueue : public LocalQueue {
private:
SubscriptionManager& subscriptions;