Actual: false
Expected: true
gtest_output_test_.cc:#: Failure
-Value of: 3
-Expected: 2
-\e[0;32m[==========] \e[mRunning 62 tests from 27 test cases.
+ Expected: 2
+To be equal to: 3
+\e[0;32m[==========] \e[mRunning 66 tests from 29 test cases.
\e[0;32m[----------] \e[mGlobal test environment set-up.
FooEnvironment::SetUp() called.
BarEnvironment::SetUp() called.
\e[0;32m[ OK ] \e[mPassingTest.PassingTest1
\e[0;32m[ RUN ] \e[mPassingTest.PassingTest2
\e[0;32m[ OK ] \e[mPassingTest.PassingTest2
+\e[0;32m[----------] \e[m2 tests from NonfatalFailureTest
+\e[0;32m[ RUN ] \e[mNonfatalFailureTest.EscapesStringOperands
+gtest_output_test_.cc:#: Failure
+ Expected: kGoldenString
+ Which is: "\"Line"
+To be equal to: actual
+ Which is: "actual \"string\""
+gtest_output_test_.cc:#: Failure
+ Expected: golden
+ Which is: "\"Line"
+To be equal to: actual
+ Which is: "actual \"string\""
+\e[0;31m[ FAILED ] \e[mNonfatalFailureTest.EscapesStringOperands
+\e[0;32m[ RUN ] \e[mNonfatalFailureTest.DiffForLongStrings
+gtest_output_test_.cc:#: Failure
+ Expected: golden_str
+ Which is: "\"Line\0 1\"\nLine 2"
+To be equal to: "Line 2"
+With diff:
+@@ -1,2 @@
+-\"Line\0 1\"
+ Line 2
+
+\e[0;31m[ FAILED ] \e[mNonfatalFailureTest.DiffForLongStrings
\e[0;32m[----------] \e[m3 tests from FatalFailureTest
\e[0;32m[ RUN ] \e[mFatalFailureTest.FatalFailureInSubroutine
(expecting a failure that x should be 1)
gtest_output_test_.cc:#: Failure
-Value of: x
- Actual: 2
-Expected: 1
+ Expected: 1
+To be equal to: x
+ Which is: 2
\e[0;31m[ FAILED ] \e[mFatalFailureTest.FatalFailureInSubroutine
\e[0;32m[ RUN ] \e[mFatalFailureTest.FatalFailureInNestedSubroutine
(expecting a failure that x should be 1)
gtest_output_test_.cc:#: Failure
-Value of: x
- Actual: 2
-Expected: 1
+ Expected: 1
+To be equal to: x
+ Which is: 2
\e[0;31m[ FAILED ] \e[mFatalFailureTest.FatalFailureInNestedSubroutine
\e[0;32m[ RUN ] \e[mFatalFailureTest.NonfatalFailureInSubroutine
(expecting a failure on false)
\e[0;32m[ RUN ] \e[mSCOPED_TRACETest.WorksInLoop
(expected to fail)
gtest_output_test_.cc:#: Failure
-Value of: n
- Actual: 1
-Expected: 2
+ Expected: 2
+To be equal to: n
+ Which is: 1
Google Test trace:
gtest_output_test_.cc:#: i = 1
gtest_output_test_.cc:#: Failure
-Value of: n
- Actual: 2
-Expected: 1
+ Expected: 1
+To be equal to: n
+ Which is: 2
Google Test trace:
gtest_output_test_.cc:#: i = 2
\e[0;31m[ FAILED ] \e[mSCOPED_TRACETest.WorksInLoop
\e[0;32m[ RUN ] \e[mSCOPED_TRACETest.WorksInSubroutine
(expected to fail)
gtest_output_test_.cc:#: Failure
-Value of: n
- Actual: 1
-Expected: 2
+ Expected: 2
+To be equal to: n
+ Which is: 1
Google Test trace:
gtest_output_test_.cc:#: n = 1
gtest_output_test_.cc:#: Failure
-Value of: n
- Actual: 2
-Expected: 1
+ Expected: 1
+To be equal to: n
+ Which is: 2
Google Test trace:
gtest_output_test_.cc:#: n = 2
\e[0;31m[ FAILED ] \e[mSCOPED_TRACETest.WorksInSubroutine
\e[0;32m[ RUN ] \e[mSCOPED_TRACETest.CanBeNested
(expected to fail)
gtest_output_test_.cc:#: Failure
-Value of: n
- Actual: 2
-Expected: 1
+ Expected: 1
+To be equal to: n
+ Which is: 2
Google Test trace:
gtest_output_test_.cc:#: n = 2
gtest_output_test_.cc:#:
\e[0;32m[ OK ] \e[mTypedTest/0.Success
\e[0;32m[ RUN ] \e[mTypedTest/0.Failure
gtest_output_test_.cc:#: Failure
-Value of: TypeParam()
- Actual: 0
-Expected: 1
+ Expected: 1
+To be equal to: TypeParam()
+ Which is: 0
Expected failure
\e[0;31m[ FAILED ] \e[mTypedTest/0.Failure, where TypeParam = int
\e[0;32m[----------] \e[m2 tests from Unsigned/TypedTestP/0, where TypeParam = unsigned char
\e[0;32m[ OK ] \e[mUnsigned/TypedTestP/0.Success
\e[0;32m[ RUN ] \e[mUnsigned/TypedTestP/0.Failure
gtest_output_test_.cc:#: Failure
-Value of: TypeParam()
- Actual: '\0'
-Expected: 1U
-Which is: 1
+ Expected: 1U
+ Which is: 1
+To be equal to: TypeParam()
+ Which is: '\0'
Expected failure
\e[0;31m[ FAILED ] \e[mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
\e[0;32m[----------] \e[m2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned int
\e[0;32m[ OK ] \e[mUnsigned/TypedTestP/1.Success
\e[0;32m[ RUN ] \e[mUnsigned/TypedTestP/1.Failure
gtest_output_test_.cc:#: Failure
-Value of: TypeParam()
- Actual: 0
-Expected: 1U
-Which is: 1
+ Expected: 1U
+ Which is: 1
+To be equal to: TypeParam()
+ Which is: 0
Expected failure
\e[0;31m[ FAILED ] \e[mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
\e[0;32m[----------] \e[m4 tests from ExpectFailureTest
\e[0;32m[----------] \e[m1 test from PrintingFailingParams/FailingParamTest
\e[0;32m[ RUN ] \e[mPrintingFailingParams/FailingParamTest.Fails/0
gtest_output_test_.cc:#: Failure
-Value of: GetParam()
- Actual: 2
-Expected: 1
+ Expected: 1
+To be equal to: GetParam()
+ Which is: 2
\e[0;31m[ FAILED ] \e[mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
+\e[0;32m[----------] \e[m2 tests from PrintingStrings/ParamTest
+\e[0;32m[ RUN ] \e[mPrintingStrings/ParamTest.Success/a
+\e[0;32m[ OK ] \e[mPrintingStrings/ParamTest.Success/a
+\e[0;32m[ RUN ] \e[mPrintingStrings/ParamTest.Failure/a
+gtest_output_test_.cc:#: Failure
+ Expected: "b"
+To be equal to: GetParam()
+ Which is: "a"
+Expected failure
+\e[0;31m[ FAILED ] \e[mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
\e[0;32m[----------] \e[mGlobal test environment tear-down
BarEnvironment::TearDown() called.
gtest_output_test_.cc:#: Failure
gtest_output_test_.cc:#: Failure
Failed
Expected fatal failure.
-\e[0;32m[==========] \e[m62 tests from 27 test cases ran.
-\e[0;32m[ PASSED ] \e[m21 tests.
-\e[0;31m[ FAILED ] \e[m41 tests, listed below:
+\e[0;32m[==========] \e[m66 tests from 29 test cases ran.
+\e[0;32m[ PASSED ] \e[m22 tests.
+\e[0;31m[ FAILED ] \e[m44 tests, listed below:
+\e[0;31m[ FAILED ] \e[mNonfatalFailureTest.EscapesStringOperands
+\e[0;31m[ FAILED ] \e[mNonfatalFailureTest.DiffForLongStrings
\e[0;31m[ FAILED ] \e[mFatalFailureTest.FatalFailureInSubroutine
\e[0;31m[ FAILED ] \e[mFatalFailureTest.FatalFailureInNestedSubroutine
\e[0;31m[ FAILED ] \e[mFatalFailureTest.NonfatalFailureInSubroutine
\e[0;31m[ FAILED ] \e[mExpectFailureWithThreadsTest.ExpectNonFatalFailure
\e[0;31m[ FAILED ] \e[mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
\e[0;31m[ FAILED ] \e[mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
+\e[0;31m[ FAILED ] \e[mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
-41 FAILED TESTS
+44 FAILED TESTS
\e[0;33m YOU HAVE 1 DISABLED TEST
\e[mNote: Google Test filter = FatalFailureTest.*:LoggingTest.*
[ RUN ] FatalFailureTest.FatalFailureInSubroutine
(expecting a failure that x should be 1)
gtest_output_test_.cc:#: Failure
-Value of: x
- Actual: 2
-Expected: 1
+ Expected: 1
+To be equal to: x
+ Which is: 2
[ FAILED ] FatalFailureTest.FatalFailureInSubroutine (? ms)
[ RUN ] FatalFailureTest.FatalFailureInNestedSubroutine
(expecting a failure that x should be 1)
gtest_output_test_.cc:#: Failure
-Value of: x
- Actual: 2
-Expected: 1
+ Expected: 1
+To be equal to: x
+ Which is: 2
[ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms)
[ RUN ] FatalFailureTest.NonfatalFailureInSubroutine
(expecting a failure on false)
[ FAILED ] LoggingTest.InterleavingLoggingAndAssertions
4 FAILED TESTS
- YOU HAVE 1 DISABLED TEST
-
Note: Google Test filter = *DISABLED_*
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran.
[ PASSED ] 1 test.
-
- YOU HAVE 1 DISABLED TEST
-