summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-7207: remove cpp and python subdirs from svn trunk, they have migrated ↵Robert Gemmell2016-07-05273-56228/+0
| | | | | | to their own git repositories git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1751566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7306: Conditional compile mismatch in broker and common libs.Alan Conway2016-06-221-2/+0
| | | | | | | | | | | | | | | | | | | Removed _IN_QPID_BROKER compile definition: Inconsistently set for libqpidcommon (compiled .cpp files) and libqpidbroker (uses .h) files - The broker has a binary incompatible notion of what is in the library. It sort-of works by accident: - shared_ptr<T> only contains a T*, the mismatch is effectively doing reinterpret_cast<T*> - plain T* works for op->, but doesn't guarantee no concurrent deletes. - we create and destroy shared_ptr in libraries with _IN_QPID_BROKER set so we get cleanup, and no cores if we're lucky but there is limited protection from races. Was only used by management: - I think exposing non-shared ptr GetObject was a feature that never materialized, - if not we need a separate function or class for non-shared-ptr users. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1749781 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7281: Various fixes for the tests on windowsJustin Ross2016-06-015-23/+91
| | | | | | | | | | - Adjust environment script for windows paths - Pythonify the test runner for the windows store tests - Run the HA tests only on posix systems - Remove a finicky assertion in brokertest.py git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1746375 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7281: Prevent shlex.split from removing backslashesJustin Ross2016-05-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1745659 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7234: check handler is not null (as it will be when releasing unused ↵Gordon Sim2016-05-231-0/+21
| | | | | | prefetch on close) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1745195 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Make call_for_output Python 2.6 compatibleJustin Ross2016-05-111-3/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1743410 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Found another variant of this leakJustin Ross2016-05-031-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1742115 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Account for another variant of the createQueue leakJustin Ross2016-05-011-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741907 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7240: use protper cursor type when purging priority levelsGordon Sim2016-04-291-0/+40
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741635 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Remove a duplicate suppression and expand the applicability of ↵Justin Ross2016-04-291-11/+2
| | | | | | another git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741620 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Even more liberal suppressionsJustin Ross2016-04-291-12/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741546 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Keep going if CERTUTIL is not setJustin Ross2016-04-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741540 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: More valgrind suppressionsJustin Ross2016-04-281-0/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741518 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7234: add testGordon Sim2016-04-281-0/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741505 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: increase the auto-delete timeout to ensure that it never fires even ↵Gordon Sim2016-04-281-5/+5
| | | | | | when running under valgrind git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741493 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7233: limit capacity to messages only if message count is non-zeroGordon Sim2016-04-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741492 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Remove match-leak-kinds from suppressions; it's supported only in ↵Justin Ross2016-04-281-5/+0
| | | | | | newer valgrinds git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741480 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Make the provisional suppressions even more permissiveJustin Ross2016-04-271-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741344 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Add a missing importJustin Ross2016-04-271-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741272 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Skip some tests when the swigged python client is not availableJustin Ross2016-04-272-19/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741266 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Make the suppressions general wrt starting as a thread or the ↵Justin Ross2016-04-271-7/+0
| | | | | | main process git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741254 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Add provisional valgrind suppressionsJustin Ross2016-04-262-0/+74
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741123 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Make the test-time dependency check script executableJustin Ross2016-04-261-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741093 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Make env.sh compatible with -e scriptsJustin Ross2016-04-261-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741046 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Use Python 2.6 compatible string formatsJustin Ross2016-04-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741013 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Avoid use of Popen with shell=True; on some platforms it prevents ↵Justin Ross2016-04-211-14/+17
| | | | | | process termination git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740427 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Use Python 2.6 compatible string formatsJustin Ross2016-04-2119-100/+100
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740424 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Create independent cpp and python subtrees, with content from ↵Justin Ross2016-04-2180-2576/+2411
| | | | | | tools and extras git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740289 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7134: ensure content object is reset when bytes are setGordon Sim2016-03-301-0/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1737093 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7148: Update CMake files to use better more modern style and featuresAndrew Stitcher2016-03-162-50/+18
| | | | | | | - This is already the way we do this stuff in Qpid Proton - Upgrade minimum version of CMake to 2.8.7 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1735324 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7134: ensure content object is reset when bytes are setGordon Sim2016-03-101-0/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1734476 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7130: added test for retrieving authenticated username when using sslGordon Sim2016-03-082-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1734164 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7100: Don't divide by zero when nsubs is 0 in shared mode. Patch from ↵Gordon Sim2016-03-021-2/+2
| | | | | | yuelongguang@letv.com git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1733272 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7076: Avoid error with qpid-cpp-benchmark with 0 senders. Patch from ↵Gordon Sim2016-02-191-3/+6
| | | | | | yuelongguang@letv.com git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1731309 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6754: ensure anonymous-relay doesn't expose ability to detect whether ↵Gordon Sim2015-11-261-0/+18
| | | | | | or not entity exists for those without permissions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1716781 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6754: some AMQP 1.0 based acl tests including for 'anonymous relay' ↵Gordon Sim2015-11-264-76/+482
| | | | | | pseudo-exchange git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1716780 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6717: Change Selector beaviour and tests to accord with consensus semanticsAndrew Stitcher2015-09-041-1/+9
| | | | | | | - It seems to be the consensus amongst JMS Selector implementations that the NOT IN expression should return false if none of the types match git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1701301 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5855 - Simplified HA transaction logic.Alan Conway2015-09-032-188/+20
| | | | | | | | | | | | | | | | | | | | | | | Removed complex and incorrect HA+TX logic, reverted to the following limitation: You can use transactions in a HA cluster, but there are limitations on the transactional guarantees. Transactions function normally with the *primary* broker but replication to the backups is not coverted by the atomic guarantee. The following situations are all safe: - Client rolls back a transaction. - Client successfully commits a transaction. - Primary fails during a transaction *before* the client sends a commit. - Transaction contains only one message. The problem case is when all of the following occur: - transaction contains multiple actions (enqueues or dequeues) - primary fails between client sending commit and receiving commit-complete. In this case it is possible that only part of the transaction was replicated to the backups, so on fail-over partial transaction results may be visible. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1701109 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6718: Complete parsing for all styles of numeric literalsAndrew Stitcher2015-09-021-2/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1700915 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6717: Unit tests to demonstrate the issue (or not!)Andrew Stitcher2015-09-021-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1700867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Trivial update to work with changed Boost 1.59 Test library.Andrew Stitcher2015-08-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1696716 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix tests for python 2.4Gordon Sim2015-05-201-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1680478 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix test bugs in ha_tests and interop_testAlan Conway2015-05-192-1/+3
| | | | | | | Race conditions in ha_tests. Typo in skip logic for interop_test when recent proton not available. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1680422 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: make qpid-send send as string not binaryGordon Sim2015-05-151-2/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1679556 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6537: [Windows warning] avoid implicit conversion double->floatCharles E. Rolke2015-05-121-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1679012 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix floating point FieldValue tests to work on older ↵Alan Conway2015-05-071-8/+8
| | | | | | | | | | compilers/boost versions. This fixes compile errors seen on gcc-c++-4.1.2-55.el5, boost-devel-1.33.1-16.el5_9 Float/double conversion and template matching issues. Probably down to boost, but might be gcc related. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1678246 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6470: Fix float conversion problems.Alan Conway2015-04-162-21/+22
| | | | | | | | | | Previous code would incorrectly convert between float and int types producing nonsense values, and would not allow legal conversions between float and double types. Created FixedWidthIntValue and FixedWidthFloatValue template subclasses to correctly handle conversions. Enabled FieldValue unit tests for float conversions. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1674137 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6470: fix stray letters from commit 1671125Charles E. Rolke2015-04-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1671530 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6399: Fix store tests for run_test option syntax change.Alan Conway2015-04-032-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1671128 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6470: FieldValue::getFloatingPointValue() converts endian each time it ↵Alan Conway2015-04-031-34/+36
| | | | | | | | | | | | | | | | | | | | | is called. When calling getFloatingPointValue multiple times, the octets are endian-converted each time. Actually we need to make a copy first and then call convertIfRequired(). This fix is from a pull request by Pavel Pokutnev (see the JIRA). commit 4ed0ce9c9b74b136c49735b19efb80489aa495a3 His original patch was correct, I made some additions: - Added a unit test: qpid/cpp/src/tests/FieldValue.cpp - Fixed some incorrect uses of "const" in nearby code. - Replaced a for loop with std::copy, more readable and more optimizable. There are still serious problems with float conversion shown up by the unit tests, the relevant tests are commented out till these issues are fixed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1671125 13f79535-47bb-0310-9956-ffa450edef68