From commits-return-19468-apmail-activemq-commits-archive=activemq.apache.org@activemq.apache.org Mon Aug 6 15:37:27 2012 Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F29F5D3BA for ; Mon, 6 Aug 2012 15:37:26 +0000 (UTC) Received: (qmail 50261 invoked by uid 500); 6 Aug 2012 15:37:26 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 50232 invoked by uid 500); 6 Aug 2012 15:37:26 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 50223 invoked by uid 99); 6 Aug 2012 15:37:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 15:37:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Mon, 06 Aug 2012 15:37:25 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8E4D823888FD for ; Mon, 6 Aug 2012 15:36:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1369867 - /activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/HashMapTest.cpp Date: Mon, 06 Aug 2012 15:36:42 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120806153642.8E4D823888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Mon Aug 6 15:36:42 2012 New Revision: 1369867 URL: http://svn.apache.org/viewvc?rev=1369867&view=rev Log: fix the test case. Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/HashMapTest.cpp Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/HashMapTest.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/HashMapTest.cpp?rev=1369867&r1=1369866&r2=1369867&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/HashMapTest.cpp (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/test/decaf/util/HashMapTest.cpp Mon Aug 6 15:36:42 2012 @@ -374,11 +374,12 @@ void HashMapTest::testPut() { Pointer< Iterator > itr(intSet.iterator()); while (itr->hasNext()) { int key = itr->next(); - if (found = (key == myKey)) { + found = (key == myKey); + if (found) { break; } } - CPPUNIT_ASSERT_MESSAGE("Should not find new key instance in hashashMap", !found); + CPPUNIT_ASSERT_MESSAGE("Should find new key instance in hashashMap", found); // Add a new key instance and check it is returned CPPUNIT_ASSERT_NO_THROW(map.remove(myKey)); @@ -388,7 +389,8 @@ void HashMapTest::testPut() { itr.reset(intSet.iterator()); while (itr->hasNext()) { int key = itr->next(); - if ((found = (key == myKey))) { + found = (key == myKey); + if (found) { break; } }