From 5626baf004c3bb39fd4b362434c3f4cc8cc170f0 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Mon, 21 Aug 2023 11:11:37 -0700 Subject: [PATCH] Remove a flaky test with very high memory requirements. PiperOrigin-RevId: 558844591 --- .../protobuf/io/zero_copy_stream_unittest.cc | 20 ------------------- 1 file changed, 20 deletions(-) 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";