From 4d3e4cfa4a1bf01e8a19515967f127ddd4b5cdf3 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Fri, 23 Sep 2016 23:53:43 -0700 Subject: Fix MSVC stack overflow issue. --- src/google/protobuf/util/internal/json_stream_parser_test.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/google/protobuf/util/internal/json_stream_parser_test.cc b/src/google/protobuf/util/internal/json_stream_parser_test.cc index 945fc6ca..eaa7e045 100644 --- a/src/google/protobuf/util/internal/json_stream_parser_test.cc +++ b/src/google/protobuf/util/internal/json_stream_parser_test.cc @@ -139,7 +139,12 @@ class JsonStreamParserTest : public ::testing::Test { } +#ifndef _MSC_VER + // TODO(xiaofeng): We have to disable InSequence check for MSVC because it + // causes stack overflow due to its use of a linked list that is desctructed + // recursively. ::testing::InSequence in_sequence_; +#endif // !_MSC_VER MockObjectWriter mock_; ExpectingObjectWriter ow_; }; -- cgit v1.2.3