You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2017/01/06 19:39:57 UTC
[1/2] qpid-interop-test git commit: QPIDIT-70: Get encoding to work
right
Repository: qpid-interop-test
Updated Branches:
refs/heads/master f5c4263a4 -> 98bbff870
QPIDIT-70: Get encoding to work right
This fixes timestamp with leading 0x and zero suppression down
to the leading nibble.
Project: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/commit/a9229c10
Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/a9229c10
Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/a9229c10
Branch: refs/heads/master
Commit: a9229c1008bcfaef92581123515ed3b104692c14
Parents: f5c4263
Author: Chuck Rolke <cr...@redhat.com>
Authored: Fri Jan 6 13:58:52 2017 -0500
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Fri Jan 6 13:58:52 2017 -0500
----------------------------------------------------------------------
.../src/amqp_types_test/Receiver/Receiver.cs | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/a9229c10/shims/amqpnetlite/src/amqp_types_test/Receiver/Receiver.cs
----------------------------------------------------------------------
diff --git a/shims/amqpnetlite/src/amqp_types_test/Receiver/Receiver.cs b/shims/amqpnetlite/src/amqp_types_test/Receiver/Receiver.cs
index e7f563e..1edb815 100644
--- a/shims/amqpnetlite/src/amqp_types_test/Receiver/Receiver.cs
+++ b/shims/amqpnetlite/src/amqp_types_test/Receiver/Receiver.cs
@@ -143,11 +143,15 @@ namespace Qpidit
string result = "";
for (int i = input.Length - 1; i >= 0; i--)
{
- if (!suppressLeading0s || input[i] != 0)
- {
- suppressLeading0s = false;
- result += String.Format("{0:x2}", input[i]);
- }
+ result += String.Format("{0:x2}", input[i]);
+ }
+ if (suppressLeading0s)
+ {
+ result = result.TrimStart('0');
+ }
+ if (String.IsNullOrEmpty(result))
+ {
+ result = "0";
}
return result;
}
@@ -335,7 +339,7 @@ namespace Qpidit
byte[] dtbytes = BitConverter.GetBytes(
(((DateTime)messageValue).Ticks - epochTicks) / TimeSpan.TicksPerMillisecond);
qpiditType = "timestamp";
- valueString = BytesReversedToString(dtbytes, true);
+ valueString = "0x" + BytesReversedToString(dtbytes, true);
break;
case "Guid":
qpiditType = "uuid";
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[2/2] qpid-interop-test git commit: NO-JIRA: fix debug typo
Posted by ch...@apache.org.
NO-JIRA: fix debug typo
Project: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/commit/98bbff87
Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/98bbff87
Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/98bbff87
Branch: refs/heads/master
Commit: 98bbff870d672362bad696b024bb7f12f7fb1a63
Parents: a9229c1
Author: Chuck Rolke <cr...@redhat.com>
Authored: Fri Jan 6 14:39:48 2017 -0500
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Fri Jan 6 14:39:48 2017 -0500
----------------------------------------------------------------------
src/python/qpid_interop_test/shims.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/98bbff87/src/python/qpid_interop_test/shims.py
----------------------------------------------------------------------
diff --git a/src/python/qpid_interop_test/shims.py b/src/python/qpid_interop_test/shims.py
index ae5b939..b0adafa 100644
--- a/src/python/qpid_interop_test/shims.py
+++ b/src/python/qpid_interop_test/shims.py
@@ -136,7 +136,7 @@ class Receiver(ShimWorkerThread):
self.proc = Popen(self.arg_list, stdout=PIPE, stderr=PIPE, preexec_fn=setsid)
(stdoutdata, stderrdata) = self.proc.communicate()
if len(stderrdata) > 0:
- #print '<<SNDR ERROR<<', stderrdata # DEBUG - useful to see shim's failure message
+ #print '<<RCVR ERROR<<', stderrdata # DEBUG - useful to see shim's failure message
self.return_obj = (stdoutdata, stderrdata)
else:
#print '<<RCVR<<', stdoutdata # DEBUG - useful to see text received from shim
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org