diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2016-09-23 23:53:43 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2016-10-10 11:44:21 -0700 |
commit | ae9455c2749584968b0583b1b8499903a1049875 (patch) | |
tree | 449c90d51dd09ea3802362e3a79c94a1107e4e0e /src | |
parent | e0a6e52023797c605fff2df108dedc4b34ef34b8 (diff) | |
download | protobuf-ae9455c2749584968b0583b1b8499903a1049875.tar.gz protobuf-ae9455c2749584968b0583b1b8499903a1049875.tar.bz2 protobuf-ae9455c2749584968b0583b1b8499903a1049875.zip |
Fix MSVC stack overflow issue.
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/util/internal/json_stream_parser_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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_; }; |