diff options
author | Andrew Stitcher <astitcher@apache.org> | 2013-11-07 00:23:50 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2013-11-07 00:23:50 +0000 |
commit | 92e93d081dc40bbb06ac8045f992f67e41dbf428 (patch) | |
tree | 370bb374f91c5dfd39ae9695e72955afcb028fbf | |
parent | 11b18395d9b8b7f8e0f8a789b4dec6d89acb2081 (diff) | |
download | qpid-python-92e93d081dc40bbb06ac8045f992f67e41dbf428.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/qpid@1539505 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/tests/XmlClientSessionTest.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cpp/src/tests/XmlClientSessionTest.cpp b/cpp/src/tests/XmlClientSessionTest.cpp index b94c35ece0..49825e011e 100644 --- a/cpp/src/tests/XmlClientSessionTest.cpp +++ b/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; |