Skip to content

Commit

Permalink
Remove a flaky test with very high memory requirements.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 558844591
  • Loading branch information
mkruskal-google committed Aug 23, 2023
1 parent 31efbb9 commit 5626baf
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/google/protobuf/io/zero_copy_stream_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 5626baf

Please sign in to comment.