summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/ReplicationTest.cpp
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2010-05-28 14:07:25 +0000
committerStephen D. Huston <shuston@apache.org>2010-05-28 14:07:25 +0000
commit06a7140bb80448d4e8884f2644663862cb03c92f (patch)
tree708984993ea91b0cad11a340b4cf7b01e135b2f2 /qpid/cpp/src/tests/ReplicationTest.cpp
parent23ce1e7140ce5dd66788a0af066f3f12893046ac (diff)
downloadqpid-python-06a7140bb80448d4e8884f2644663862cb03c92f.tar.gz
Allow tests that load shareable libs to work on Windows with a debug build. Those libs have a 'd' appended to their name.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@949181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ReplicationTest.cpp')
-rw-r--r--qpid/cpp/src/tests/ReplicationTest.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/ReplicationTest.cpp b/qpid/cpp/src/tests/ReplicationTest.cpp
index 3b289d1b4e..7310a3fe20 100644
--- a/qpid/cpp/src/tests/ReplicationTest.cpp
+++ b/qpid/cpp/src/tests/ReplicationTest.cpp
@@ -20,6 +20,7 @@
*/
#include "unit_test.h"
#include "test_tools.h"
+#include "config.h"
#include "BrokerFixture.h"
#include "qpid/Plugin.h"
@@ -50,11 +51,13 @@ QPID_AUTO_TEST_SUITE(ReplicationTestSuite)
// FIXME aconway 2009-11-26: clean this up.
// The CMake-based build passes in the module suffix; if it's not there, this
// is a Linux/UNIX libtool-based build.
-#if defined (QPID_MODULE_SUFFIX)
-qpid::sys::Shlib plugin("replicating_listener" QPID_MODULE_SUFFIX);
+#if defined (QPID_MODULE_PREFIX) && defined (QPID_MODULE_SUFFIX)
+static const char *default_shlib =
+ QPID_MODULE_PREFIX "replicating_listener" QPID_MODULE_POSTFIX QPID_MODULE_SUFFIX;
#else
-qpid::sys::Shlib plugin(getLibPath("REPLICATING_LISTENER_LIB"));
+static const char *default_shlib = ".libs/replicating_listener.so";
#endif
+qpid::sys::Shlib plugin(getLibPath("REPLICATING_LISTENER_LIB", default_shlib));
qpid::broker::Broker::Options getBrokerOpts(const std::vector<std::string>& args)
{