diff options
author | Yash Tibrewal <yashkt@google.com> | 2017-10-26 11:19:27 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2017-10-26 11:19:27 -0700 |
commit | 1cf9992ce2bf51a2d36a0af5e679a1f70dc977f4 (patch) | |
tree | ce14c587a8f840124bdf994e936c06fb51829b3b /test/core | |
parent | 589e58316abeba98ac96a661f31b2a8502260c0b (diff) |
Removing a few build.yaml errors
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/slice/slice_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |