From 1cf9992ce2bf51a2d36a0af5e679a1f70dc977f4 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Thu, 26 Oct 2017 11:19:27 -0700 Subject: Removing a few build.yaml errors --- test/core/slice/slice_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/core/slice') diff --git a/test/core/slice/slice_test.cc b/test/core/slice/slice_test.cc index cda37fb8d9..ad62344e4d 100644 --- a/test/core/slice/slice_test.cc +++ b/test/core/slice/slice_test.cc @@ -43,8 +43,8 @@ static void test_slice_malloc_returns_something_sensible(void) { slice = grpc_slice_malloc(length); /* If there is a length, slice.data must be non-NULL. If length is zero we don't care. */ - if (length) { - GPR_ASSERT(GRPC_SLICE_START_PTR(slice)); + if (length > GRPC_SLICE_INLINED_SIZE) { + GPR_ASSERT(slice.data.refcounted.bytes); } /* Returned slice length must be what was requested. */ GPR_ASSERT(GRPC_SLICE_LENGTH(slice) == length); -- cgit v1.2.3