protobuf/protobuf-3.14-disable-IoTest.LargeOutput.patch
DistroBaker ab3b167cb1 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/protobuf.git#21c6d24bb08e405ddf767f98aaae8c824e056a13
2021-01-16 16:25:39 +00:00

26 lines
889 B
Diff

--- a/src/google/protobuf/io/zero_copy_stream_unittest.cc.orig 2021-01-12 12:25:18.471517830 +0100
+++ b/src/google/protobuf/io/zero_copy_stream_unittest.cc 2021-01-12 12:25:42.022696126 +0100
@@ -712,22 +712,6 @@
}
}
-// Verifies that outputs up to kint32max can be created.
-TEST_F(IoTest, LargeOutput) {
- 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);
-}
-
-
// To test files, we create a temporary file, write, read, truncate, repeat.
TEST_F(IoTest, FileIo) {
std::string filename = TestTempDir() + "/zero_copy_stream_test_file";