diff options
Diffstat (limited to 'test/core/slice')
-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); |