Remove a flaky test with very high memory requirements.

PiperOrigin-RevId: 558844591
pull/13622/head
Mike Kruskal 1 year ago committed by Copybara-Service
parent 51ff676461
commit ef58724805
  1. 20
      src/google/protobuf/io/zero_copy_stream_unittest.cc

@ -729,26 +729,6 @@ TEST_F(IoTest, StringIo) {
}
}
// Verifies that outputs up to kint32max can be created.
TEST_F(IoTest, LargeOutput) {
// Filter out this test on 32-bit architectures and builds where our test
// infrastructure can't handle it.
if(sizeof(void*) < 8) return;
#if !defined(THREAD_SANITIZER) && !defined(MEMORY_SANITIZER) && \
!defined(_MSC_VER)
std::string str;
StringOutputStream output(&str);
void* unused_data;
int size;
// Repeatedly calling Next should eventually grow the buffer to kint32max.
do {
EXPECT_TRUE(output.Next(&unused_data, &size));
} while (str.size() < std::numeric_limits<int>::max());
// Further increases should be possible.
output.Next(&unused_data, &size);
EXPECT_GT(size, 0);
#endif // !THREAD_SANITIZER && !MEMORY_SANITIZER
}
TEST(DefaultReadCordTest, ReadSmallCord) {
std::string source = "abcdefghijk";

Loading…
Cancel
Save