diff options
| author | Alan Conway <aconway@apache.org> | 2014-04-11 13:18:23 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2014-04-11 13:18:23 +0000 |
| commit | c7f2cd12b45f051cd1d421d8c440f12d007a50b4 (patch) | |
| tree | afcba64fa47fdb2693cc9788218956fb2cb90347 /qpid/cpp/src/tests/interlink_tests.py | |
| parent | 113040bb168f4bcd9aaeeeecae38f0510093aca4 (diff) | |
| download | qpid-python-c7f2cd12b45f051cd1d421d8c440f12d007a50b4.tar.gz | |
QPID-5681: Fix core dump in interlink_tests.
Use native python client for older (<=0.6) versions of proton.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1586646 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/interlink_tests.py')
| -rwxr-xr-x | qpid/cpp/src/tests/interlink_tests.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/interlink_tests.py b/qpid/cpp/src/tests/interlink_tests.py index bb82b1c956..20ce6167a8 100755 --- a/qpid/cpp/src/tests/interlink_tests.py +++ b/qpid/cpp/src/tests/interlink_tests.py @@ -72,7 +72,12 @@ class AmqpBrokerTest(BrokerTest): return self.popen(cmd, stdout=PIPE) def ready_receiver(self, config): - s = self.broker.connect().session() + # NOTE: some tests core dump when run with SWIG binding over proton + # version<=0.6. This is fixed on proton 0.7. + def use_native(): + pv=os.environ.get("QPID_PROTON_VERSION") + return pv and [int(n) for n in pv.split(".")] <= [0,6] + s = self.broker.connect(native=use_native()).session() r = s.receiver("readyq; {create:always}") cmd = ["qpid-receive", "--broker", config.url, |
