aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/util
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2016-09-23 23:53:43 -0700
committerGravatar Bo Yang <teboring@google.com>2016-10-10 11:44:21 -0700
commitae9455c2749584968b0583b1b8499903a1049875 (patch)
tree449c90d51dd09ea3802362e3a79c94a1107e4e0e /src/google/protobuf/util
parente0a6e52023797c605fff2df108dedc4b34ef34b8 (diff)
Fix MSVC stack overflow issue.
Diffstat (limited to 'src/google/protobuf/util')
-rw-r--r--src/google/protobuf/util/internal/json_stream_parser_test.cc5
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_;
};