Return-Path: Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: (qmail 70525 invoked from network); 4 Dec 2009 02:26:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Dec 2009 02:26:41 -0000 Received: (qmail 30884 invoked by uid 500); 4 Dec 2009 02:26:41 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 30842 invoked by uid 500); 4 Dec 2009 02:26:41 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 30833 invoked by uid 99); 4 Dec 2009 02:26:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 02:26:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 02:26:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9465B238888C; Fri, 4 Dec 2009 02:26:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r887038 - in /qpid/trunk/qpid/cpp/src/tests: CMakeLists.txt test_store.cpp Date: Fri, 04 Dec 2009 02:26:17 -0000 To: commits@qpid.apache.org From: shuston@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091204022617.9465B238888C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: shuston Date: Fri Dec 4 02:26:16 2009 New Revision: 887038 URL: http://svn.apache.org/viewvc?rev=887038&view=rev Log: Fix build errors in test_store; resolves QPID-2229 Modified: qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt qpid/trunk/qpid/cpp/src/tests/test_store.cpp Modified: qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt?rev=887038&r1=887037&r2=887038&view=diff ============================================================================== --- qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt (original) +++ qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt Fri Dec 4 02:26:16 2009 @@ -290,6 +290,7 @@ endif (PYTHON_EXECUTABLE) add_library(test_store MODULE test_store.cpp) +target_link_libraries (test_store qpidbroker qpidcommon) set_target_properties (test_store PROPERTIES PREFIX "") #EXTRA_DIST += \ Modified: qpid/trunk/qpid/cpp/src/tests/test_store.cpp URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/test_store.cpp?rev=887038&r1=887037&r2=887038&view=diff ============================================================================== --- qpid/trunk/qpid/cpp/src/tests/test_store.cpp (original) +++ qpid/trunk/qpid/cpp/src/tests/test_store.cpp Fri Dec 4 02:26:16 2009 @@ -43,7 +43,6 @@ using namespace qpid; using namespace broker; using namespace std; -using namespace boost; using namespace qpid::sys; namespace qpid { @@ -60,9 +59,9 @@ }; struct Completer : public Runnable { - intrusive_ptr message; + boost::intrusive_ptr message; int usecs; - Completer(intrusive_ptr m, int u) : message(m), usecs(u) {} + Completer(boost::intrusive_ptr m, int u) : message(m), usecs(u) {} void run() { qpid::sys::usleep(usecs); message->enqueueComplete(); @@ -82,7 +81,7 @@ const boost::intrusive_ptr& msg, const PersistableQueue& ) { - string data = polymorphic_downcast(msg.get())->getFrames().getContent(); + string data = boost::polymorphic_downcast(msg.get())->getFrames().getContent(); // Check the message for special instructions. size_t i = string::npos; @@ -106,7 +105,7 @@ } else if (strncmp(action.c_str(), ASYNC.c_str(), strlen(ASYNC.c_str())) == 0) { std::string delayStr(action.substr(ASYNC.size())); - int delay = lexical_cast(delayStr); + int delay = boost::lexical_cast(delayStr); threads.push_back(Thread(*new Completer(msg, delay))); } else { --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscribe@qpid.apache.org