Fix MSVC stack overflow issue.

This commit is contained in:
Feng Xiao 2016-09-23 23:53:43 -07:00 committed by Bo Yang
parent e0a6e52023
commit ae9455c274

View File

@ -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_;
};