You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kp...@apache.org on 2020/07/09 20:11:23 UTC
[qpid-proton] branch array-of-lists-first-list-empty updated:
PROTON-2244: Removed debug statements erroneously left in code from
previous commit
This is an automated email from the ASF dual-hosted git repository.
kpvdr pushed a commit to branch array-of-lists-first-list-empty
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/array-of-lists-first-list-empty by this push:
new 9bcec75 PROTON-2244: Removed debug statements erroneously left in code from previous commit
9bcec75 is described below
commit 9bcec751c0e5444c5397df0eaf48d0da72a1a0b8
Author: Kim van der Riet <kp...@apache.org>
AuthorDate: Thu Jul 9 16:11:06 2020 -0400
PROTON-2244: Removed debug statements erroneously left in code from previous commit
---
c/tests/data_test.cpp | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/c/tests/data_test.cpp b/c/tests/data_test.cpp
index 6a45958..2bb0b5f 100644
--- a/c/tests/data_test.cpp
+++ b/c/tests/data_test.cpp
@@ -25,14 +25,11 @@
#include <proton/codec.h>
#include <proton/error.h>
-//#include <proton/types.hpp>
#include <cstdarg> // va_start(), va_end()
#include <ctime> // time()
#include <unistd.h> // ssize_t
-#include <iostream> // DEBUG
-
using namespace pn_test;
// Make sure we can grow the capacity of a pn_data_t all the way to the max and
@@ -130,18 +127,12 @@ static void check_array(const char *fmt, ...) {
// Encode src array to buf
ssize_t enc_size = pn_data_encode(src, buf, BUFSIZE - 1);
- if (enc_size < 0) {
- std::cout << "ENC ERR: " << pn_code(enc_size) << std::endl;
- return;
- }
+ if (enc_size < 0) return;
// Decode buf to data
ssize_t dec_size = pn_data_decode(data, buf, BUFSIZE - 1);
pn_error_t *dec_err = pn_data_error(data);
- if (dec_size < 0) {
- std::cout << "DEC ERR: " << pn_code(dec_size) << std::endl;
- return;
- }
+ if (dec_size < 0) return;
// Checks
CHECK(enc_size == dec_size);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org