You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2013/11/07 01:23:51 UTC
svn commit: r1539505 -
/qpid/trunk/qpid/cpp/src/tests/XmlClientSessionTest.cpp
Author: astitcher
Date: Thu Nov 7 00:23:50 2013
New Revision: 1539505
URL: http://svn.apache.org/r1539505
Log:
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)
Modified:
qpid/trunk/qpid/cpp/src/tests/XmlClientSessionTest.cpp
Modified: qpid/trunk/qpid/cpp/src/tests/XmlClientSessionTest.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/XmlClientSessionTest.cpp?rev=1539505&r1=1539504&r2=1539505&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/XmlClientSessionTest.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/XmlClientSessionTest.cpp Thu Nov 7 00:23:50 2013
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org