diff options
author | Stephen D. Huston <shuston@apache.org> | 2010-05-28 14:07:25 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2010-05-28 14:07:25 +0000 |
commit | 634b54d79e8b160c8c2e2fd9f61f64e5099a80c1 (patch) | |
tree | b66854f03f9ae58044989a988642f74bbf946d25 /cpp/src/tests/Shlib.cpp | |
parent | 9987421eabe1191c950cdb1d538d03a75883255d (diff) | |
download | qpid-python-634b54d79e8b160c8c2e2fd9f61f64e5099a80c1.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/qpid@949181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/Shlib.cpp')
-rw-r--r-- | cpp/src/tests/Shlib.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/tests/Shlib.cpp b/cpp/src/tests/Shlib.cpp index 692cfcdff9..25974d0ebb 100644 --- a/cpp/src/tests/Shlib.cpp +++ b/cpp/src/tests/Shlib.cpp @@ -19,6 +19,7 @@ */ #include "test_tools.h" +#include "config.h" #include "qpid/sys/Shlib.h" #include "qpid/Exception.h" @@ -37,7 +38,7 @@ QPID_AUTO_TEST_CASE(testShlib) { // 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_PREFIX) && defined (QPID_MODULE_SUFFIX) - Shlib sh("./" QPID_MODULE_PREFIX "shlibtest" QPID_MODULE_SUFFIX); + Shlib sh("./" QPID_MODULE_PREFIX "shlibtest" QPID_MODULE_POSTFIX QPID_MODULE_SUFFIX); #else Shlib sh(".libs/libshlibtest.so"); #endif @@ -59,7 +60,7 @@ QPID_AUTO_TEST_CASE(testAutoShlib) { int unloaded = 0; { #if defined (QPID_MODULE_PREFIX) && defined (QPID_MODULE_SUFFIX) - AutoShlib sh("./" QPID_MODULE_PREFIX "shlibtest" QPID_MODULE_SUFFIX); + AutoShlib sh("./" QPID_MODULE_PREFIX "shlibtest" QPID_MODULE_POSTFIX QPID_MODULE_SUFFIX); #else AutoShlib sh(".libs/libshlibtest.so"); #endif |