Merge pull request #20555 from jtattermusch/workaround_slice_test_compiler_bug

work around slice_test compiler bug (for windows bazel opt build)
pull/20621/head
Jan Tattermusch 5 years ago committed by GitHub
commit b0c87fd26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      test/core/slice/slice_test.cc

@ -243,7 +243,13 @@ static void test_slice_interning(void) {
grpc_init();
grpc_slice src1 = grpc_slice_from_copied_string("hello123456789123456789");
grpc_slice src2 = grpc_slice_from_copied_string("hello123456789123456789");
// Explicitly checking that the slices are at different addresses prevents
// failure with windows opt 64bit build.
// See https://github.com/grpc/grpc/issues/20519
GPR_ASSERT(&src1 != &src2);
GPR_ASSERT(GRPC_SLICE_START_PTR(src1) != GRPC_SLICE_START_PTR(src2));
grpc_slice interned1 = grpc_slice_intern(src1);
grpc_slice interned2 = grpc_slice_intern(src2);
GPR_ASSERT(GRPC_SLICE_START_PTR(interned1) ==

Loading…
Cancel
Save