aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-01 15:35:56 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-05-01 15:35:56 -0700
commitd4ee77e7410cee755c36fbd78b8f2f0198da67d9 (patch)
treebde2feec2c12586fe23e0be693b3cd2474acd6d4 /test
parentc610985aeb3931c53726e742707aa1a8b2fe84b9 (diff)
parent305dcf3d32bed0614325ead76f121702768ce874 (diff)
Merge github.com:grpc/grpc into epex4
Diffstat (limited to 'test')
-rw-r--r--test/core/slice/slice_buffer_test.c4
-rw-r--r--test/cpp/thread_manager/thread_manager_test.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/core/slice/slice_buffer_test.c b/test/core/slice/slice_buffer_test.c
index 51cab2a87f..41cff3d4d2 100644
--- a/test/core/slice/slice_buffer_test.c
+++ b/test/core/slice/slice_buffer_test.c
@@ -115,8 +115,8 @@ void test_slice_buffer_move_first() {
grpc_slice_buffer_move_first(&src, 2, &dst);
src_len -= 2;
dst_len += 2;
- GPR_ASSERT(src_len == src.length);
- GPR_ASSERT(dst_len == dst.length);
+ GPR_ASSERT(src.length == src_len);
+ GPR_ASSERT(dst.length == dst_len);
}
int main(int argc, char **argv) {
diff --git a/test/cpp/thread_manager/thread_manager_test.cc b/test/cpp/thread_manager/thread_manager_test.cc
index 35c8d5d088..e1a03666f0 100644
--- a/test/cpp/thread_manager/thread_manager_test.cc
+++ b/test/cpp/thread_manager/thread_manager_test.cc
@@ -118,7 +118,7 @@ void ThreadManagerTest::PerformTest() {
// The number of times DoWork() was called is equal to the number of times
// WORK_FOUND was returned
- gpr_log(GPR_DEBUG, "DoWork() called %ld times",
+ gpr_log(GPR_DEBUG, "DoWork() called %" PRIdPTR " times",
gpr_atm_no_barrier_load(&num_do_work_));
GPR_ASSERT(gpr_atm_no_barrier_load(&num_do_work_) ==
gpr_atm_no_barrier_load(&num_work_found_));