From 065a0d59358c3a1124ff21ee5dfdd11b475b95da Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 7 Nov 2013 00:23:50 +0000 Subject: 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 --- qpid/cpp/src/tests/XmlClientSessionTest.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/src') 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; -- cgit v1.2.1