Indents preprocessor directives.
This commit is contained in:
parent
ed6c9277bb
commit
658ac0b71a
@ -114,7 +114,8 @@ struct LinkedPtrLessThan {
|
|||||||
// To gcc,
|
// To gcc,
|
||||||
// wchar_t == signed wchar_t != unsigned wchar_t == unsigned int
|
// wchar_t == signed wchar_t != unsigned wchar_t == unsigned int
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define GMOCK_HAS_SIGNED_WCHAR_T_ 1 // signed/unsigned wchar_t are valid types.
|
// signed/unsigned wchar_t are valid types.
|
||||||
|
# define GMOCK_HAS_SIGNED_WCHAR_T_ 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// In what follows, we use the term "kind" to indicate whether a type
|
// In what follows, we use the term "kind" to indicate whether a type
|
||||||
|
@ -416,13 +416,16 @@ TEST(LogTest, NoSkippingStackFrameInOptMode) {
|
|||||||
CaptureStdout();
|
CaptureStdout();
|
||||||
Log(WARNING, "Test log.\n", 100);
|
Log(WARNING, "Test log.\n", 100);
|
||||||
const String log = GetCapturedStdout();
|
const String log = GetCapturedStdout();
|
||||||
|
|
||||||
# if defined(NDEBUG) && GTEST_GOOGLE3_MODE_
|
# if defined(NDEBUG) && GTEST_GOOGLE3_MODE_
|
||||||
|
|
||||||
// In opt mode, no stack frame should be skipped.
|
// In opt mode, no stack frame should be skipped.
|
||||||
EXPECT_THAT(log, ContainsRegex("\nGMOCK WARNING:\n"
|
EXPECT_THAT(log, ContainsRegex("\nGMOCK WARNING:\n"
|
||||||
"Test log\\.\n"
|
"Test log\\.\n"
|
||||||
"Stack trace:\n"
|
"Stack trace:\n"
|
||||||
".+"));
|
".+"));
|
||||||
# else
|
# else
|
||||||
|
|
||||||
// In dbg mode, the stack frames should be skipped.
|
// In dbg mode, the stack frames should be skipped.
|
||||||
EXPECT_STREQ("\nGMOCK WARNING:\n"
|
EXPECT_STREQ("\nGMOCK WARNING:\n"
|
||||||
"Test log.\n"
|
"Test log.\n"
|
||||||
|
@ -1890,7 +1890,9 @@ TEST(FunctionCallMessageTest, UninterestingCallGeneratesFyiWithStackTrace) {
|
|||||||
const String output = GetCapturedStdout();
|
const String output = GetCapturedStdout();
|
||||||
EXPECT_PRED_FORMAT2(IsSubstring, "GMOCK WARNING", output);
|
EXPECT_PRED_FORMAT2(IsSubstring, "GMOCK WARNING", output);
|
||||||
EXPECT_PRED_FORMAT2(IsSubstring, "Stack trace:", output);
|
EXPECT_PRED_FORMAT2(IsSubstring, "Stack trace:", output);
|
||||||
|
|
||||||
# ifndef NDEBUG
|
# ifndef NDEBUG
|
||||||
|
|
||||||
// We check the stack trace content in dbg-mode only, as opt-mode
|
// We check the stack trace content in dbg-mode only, as opt-mode
|
||||||
// may inline the call we are interested in seeing.
|
// may inline the call we are interested in seeing.
|
||||||
|
|
||||||
@ -1904,6 +1906,7 @@ TEST(FunctionCallMessageTest, UninterestingCallGeneratesFyiWithStackTrace) {
|
|||||||
c.NonVoidMethod();
|
c.NonVoidMethod();
|
||||||
const String output2 = GetCapturedStdout();
|
const String output2 = GetCapturedStdout();
|
||||||
EXPECT_PRED_FORMAT2(IsSubstring, "NonVoidMethod(", output2);
|
EXPECT_PRED_FORMAT2(IsSubstring, "NonVoidMethod(", output2);
|
||||||
|
|
||||||
# endif // NDEBUG
|
# endif // NDEBUG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user