diff --git a/src/google/protobuf/io/zero_copy_stream_unittest.cc b/src/google/protobuf/io/zero_copy_stream_unittest.cc index 4472d584606b..eb36621f3910 100644 --- a/src/google/protobuf/io/zero_copy_stream_unittest.cc +++ b/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::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";