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 | 06a7140bb80448d4e8884f2644663862cb03c92f (patch) | |
tree | 708984993ea91b0cad11a340b4cf7b01e135b2f2 /qpid/cpp/src/tests/Shlib.cpp | |
parent | 23ce1e7140ce5dd66788a0af066f3f12893046ac (diff) | |
download | qpid-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/Shlib.cpp')
-rw-r--r-- | qpid/cpp/src/tests/Shlib.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/Shlib.cpp b/qpid/cpp/src/tests/Shlib.cpp index 692cfcdff9..25974d0ebb 100644 --- a/qpid/cpp/src/tests/Shlib.cpp +++ b/qpid/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 |