1 The non-test part of the code is expected to have 2 failures.
3 gtest_output_test_.cc:#: Failure
7 gtest_output_test_.cc:#: Failure
10 \e[0;32m[==========]
\e[mRunning 66 tests from 29 test cases.
11 \e[0;32m[----------]
\e[mGlobal test environment set-up.
12 FooEnvironment::SetUp() called.
13 BarEnvironment::SetUp() called.
14 \e[0;32m[----------]
\e[m1 test from ADeathTest
15 \e[0;32m[ RUN ]
\e[mADeathTest.ShouldRunFirst
16 \e[0;32m[ OK ]
\e[mADeathTest.ShouldRunFirst
17 \e[0;32m[----------]
\e[m1 test from ATypedDeathTest/0, where TypeParam = int
18 \e[0;32m[ RUN ]
\e[mATypedDeathTest/0.ShouldRunFirst
19 \e[0;32m[ OK ]
\e[mATypedDeathTest/0.ShouldRunFirst
20 \e[0;32m[----------]
\e[m1 test from ATypedDeathTest/1, where TypeParam = double
21 \e[0;32m[ RUN ]
\e[mATypedDeathTest/1.ShouldRunFirst
22 \e[0;32m[ OK ]
\e[mATypedDeathTest/1.ShouldRunFirst
23 \e[0;32m[----------]
\e[m1 test from My/ATypeParamDeathTest/0, where TypeParam = int
24 \e[0;32m[ RUN ]
\e[mMy/ATypeParamDeathTest/0.ShouldRunFirst
25 \e[0;32m[ OK ]
\e[mMy/ATypeParamDeathTest/0.ShouldRunFirst
26 \e[0;32m[----------]
\e[m1 test from My/ATypeParamDeathTest/1, where TypeParam = double
27 \e[0;32m[ RUN ]
\e[mMy/ATypeParamDeathTest/1.ShouldRunFirst
28 \e[0;32m[ OK ]
\e[mMy/ATypeParamDeathTest/1.ShouldRunFirst
29 \e[0;32m[----------]
\e[m2 tests from PassingTest
30 \e[0;32m[ RUN ]
\e[mPassingTest.PassingTest1
31 \e[0;32m[ OK ]
\e[mPassingTest.PassingTest1
32 \e[0;32m[ RUN ]
\e[mPassingTest.PassingTest2
33 \e[0;32m[ OK ]
\e[mPassingTest.PassingTest2
34 \e[0;32m[----------]
\e[m2 tests from NonfatalFailureTest
35 \e[0;32m[ RUN ]
\e[mNonfatalFailureTest.EscapesStringOperands
36 gtest_output_test_.cc:#: Failure
37 Expected: kGoldenString
39 To be equal to: actual
40 Which is: "actual \"string\""
41 gtest_output_test_.cc:#: Failure
44 To be equal to: actual
45 Which is: "actual \"string\""
46 \e[0;31m[ FAILED ]
\e[mNonfatalFailureTest.EscapesStringOperands
47 \e[0;32m[ RUN ]
\e[mNonfatalFailureTest.DiffForLongStrings
48 gtest_output_test_.cc:#: Failure
50 Which is: "\"Line\0 1\"\nLine 2"
51 To be equal to: "Line 2"
57 \e[0;31m[ FAILED ]
\e[mNonfatalFailureTest.DiffForLongStrings
58 \e[0;32m[----------]
\e[m3 tests from FatalFailureTest
59 \e[0;32m[ RUN ]
\e[mFatalFailureTest.FatalFailureInSubroutine
60 (expecting a failure that x should be 1)
61 gtest_output_test_.cc:#: Failure
65 \e[0;31m[ FAILED ]
\e[mFatalFailureTest.FatalFailureInSubroutine
66 \e[0;32m[ RUN ]
\e[mFatalFailureTest.FatalFailureInNestedSubroutine
67 (expecting a failure that x should be 1)
68 gtest_output_test_.cc:#: Failure
72 \e[0;31m[ FAILED ]
\e[mFatalFailureTest.FatalFailureInNestedSubroutine
73 \e[0;32m[ RUN ]
\e[mFatalFailureTest.NonfatalFailureInSubroutine
74 (expecting a failure on false)
75 gtest_output_test_.cc:#: Failure
79 \e[0;31m[ FAILED ]
\e[mFatalFailureTest.NonfatalFailureInSubroutine
80 \e[0;32m[----------]
\e[m1 test from LoggingTest
81 \e[0;32m[ RUN ]
\e[mLoggingTest.InterleavingLoggingAndAssertions
82 (expecting 2 failures on (3) >= (a[i]))
85 gtest_output_test_.cc:#: Failure
86 Expected: (3) >= (a[i]), actual: 3 vs 9
89 gtest_output_test_.cc:#: Failure
90 Expected: (3) >= (a[i]), actual: 3 vs 6
91 \e[0;31m[ FAILED ]
\e[mLoggingTest.InterleavingLoggingAndAssertions
92 \e[0;32m[----------]
\e[m6 tests from SCOPED_TRACETest
93 \e[0;32m[ RUN ]
\e[mSCOPED_TRACETest.ObeysScopes
95 gtest_output_test_.cc:#: Failure
97 This failure is expected, and shouldn't have a trace.
98 gtest_output_test_.cc:#: Failure
100 This failure is expected, and should have a trace.
102 gtest_output_test_.cc:#: Expected trace
103 gtest_output_test_.cc:#: Failure
105 This failure is expected, and shouldn't have a trace.
106 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.ObeysScopes
107 \e[0;32m[ RUN ]
\e[mSCOPED_TRACETest.WorksInLoop
109 gtest_output_test_.cc:#: Failure
114 gtest_output_test_.cc:#: i = 1
115 gtest_output_test_.cc:#: Failure
120 gtest_output_test_.cc:#: i = 2
121 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.WorksInLoop
122 \e[0;32m[ RUN ]
\e[mSCOPED_TRACETest.WorksInSubroutine
124 gtest_output_test_.cc:#: Failure
129 gtest_output_test_.cc:#: n = 1
130 gtest_output_test_.cc:#: Failure
135 gtest_output_test_.cc:#: n = 2
136 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.WorksInSubroutine
137 \e[0;32m[ RUN ]
\e[mSCOPED_TRACETest.CanBeNested
139 gtest_output_test_.cc:#: Failure
144 gtest_output_test_.cc:#: n = 2
145 gtest_output_test_.cc:#:
146 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.CanBeNested
147 \e[0;32m[ RUN ]
\e[mSCOPED_TRACETest.CanBeRepeated
149 gtest_output_test_.cc:#: Failure
151 This failure is expected, and should contain trace point A.
153 gtest_output_test_.cc:#: A
154 gtest_output_test_.cc:#: Failure
156 This failure is expected, and should contain trace point A and B.
158 gtest_output_test_.cc:#: B
159 gtest_output_test_.cc:#: A
160 gtest_output_test_.cc:#: Failure
162 This failure is expected, and should contain trace point A, B, and C.
164 gtest_output_test_.cc:#: C
165 gtest_output_test_.cc:#: B
166 gtest_output_test_.cc:#: A
167 gtest_output_test_.cc:#: Failure
169 This failure is expected, and should contain trace point A, B, and D.
171 gtest_output_test_.cc:#: D
172 gtest_output_test_.cc:#: B
173 gtest_output_test_.cc:#: A
174 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.CanBeRepeated
175 \e[0;32m[ RUN ]
\e[mSCOPED_TRACETest.WorksConcurrently
176 (expecting 6 failures)
177 gtest_output_test_.cc:#: Failure
179 Expected failure #1 (in thread B, only trace B alive).
181 gtest_output_test_.cc:#: Trace B
182 gtest_output_test_.cc:#: Failure
184 Expected failure #2 (in thread A, trace A & B both alive).
186 gtest_output_test_.cc:#: Trace A
187 gtest_output_test_.cc:#: Failure
189 Expected failure #3 (in thread B, trace A & B both alive).
191 gtest_output_test_.cc:#: Trace B
192 gtest_output_test_.cc:#: Failure
194 Expected failure #4 (in thread B, only trace A alive).
195 gtest_output_test_.cc:#: Failure
197 Expected failure #5 (in thread A, only trace A alive).
199 gtest_output_test_.cc:#: Trace A
200 gtest_output_test_.cc:#: Failure
202 Expected failure #6 (in thread A, no trace alive).
203 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.WorksConcurrently
204 \e[0;32m[----------]
\e[m1 test from NonFatalFailureInFixtureConstructorTest
205 \e[0;32m[ RUN ]
\e[mNonFatalFailureInFixtureConstructorTest.FailureInConstructor
206 (expecting 5 failures)
207 gtest_output_test_.cc:#: Failure
209 Expected failure #1, in the test fixture c'tor.
210 gtest_output_test_.cc:#: Failure
212 Expected failure #2, in SetUp().
213 gtest_output_test_.cc:#: Failure
215 Expected failure #3, in the test body.
216 gtest_output_test_.cc:#: Failure
218 Expected failure #4, in TearDown.
219 gtest_output_test_.cc:#: Failure
221 Expected failure #5, in the test fixture d'tor.
222 \e[0;31m[ FAILED ]
\e[mNonFatalFailureInFixtureConstructorTest.FailureInConstructor
223 \e[0;32m[----------]
\e[m1 test from FatalFailureInFixtureConstructorTest
224 \e[0;32m[ RUN ]
\e[mFatalFailureInFixtureConstructorTest.FailureInConstructor
225 (expecting 2 failures)
226 gtest_output_test_.cc:#: Failure
228 Expected failure #1, in the test fixture c'tor.
229 gtest_output_test_.cc:#: Failure
231 Expected failure #2, in the test fixture d'tor.
232 \e[0;31m[ FAILED ]
\e[mFatalFailureInFixtureConstructorTest.FailureInConstructor
233 \e[0;32m[----------]
\e[m1 test from NonFatalFailureInSetUpTest
234 \e[0;32m[ RUN ]
\e[mNonFatalFailureInSetUpTest.FailureInSetUp
235 (expecting 4 failures)
236 gtest_output_test_.cc:#: Failure
238 Expected failure #1, in SetUp().
239 gtest_output_test_.cc:#: Failure
241 Expected failure #2, in the test function.
242 gtest_output_test_.cc:#: Failure
244 Expected failure #3, in TearDown().
245 gtest_output_test_.cc:#: Failure
247 Expected failure #4, in the test fixture d'tor.
248 \e[0;31m[ FAILED ]
\e[mNonFatalFailureInSetUpTest.FailureInSetUp
249 \e[0;32m[----------]
\e[m1 test from FatalFailureInSetUpTest
250 \e[0;32m[ RUN ]
\e[mFatalFailureInSetUpTest.FailureInSetUp
251 (expecting 3 failures)
252 gtest_output_test_.cc:#: Failure
254 Expected failure #1, in SetUp().
255 gtest_output_test_.cc:#: Failure
257 Expected failure #2, in TearDown().
258 gtest_output_test_.cc:#: Failure
260 Expected failure #3, in the test fixture d'tor.
261 \e[0;31m[ FAILED ]
\e[mFatalFailureInSetUpTest.FailureInSetUp
262 \e[0;32m[----------]
\e[m1 test from AddFailureAtTest
263 \e[0;32m[ RUN ]
\e[mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
266 Expected failure in foo.cc
267 \e[0;31m[ FAILED ]
\e[mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
268 \e[0;32m[----------]
\e[m4 tests from MixedUpTestCaseTest
269 \e[0;32m[ RUN ]
\e[mMixedUpTestCaseTest.FirstTestFromNamespaceFoo
270 \e[0;32m[ OK ]
\e[mMixedUpTestCaseTest.FirstTestFromNamespaceFoo
271 \e[0;32m[ RUN ]
\e[mMixedUpTestCaseTest.SecondTestFromNamespaceFoo
272 \e[0;32m[ OK ]
\e[mMixedUpTestCaseTest.SecondTestFromNamespaceFoo
273 \e[0;32m[ RUN ]
\e[mMixedUpTestCaseTest.ThisShouldFail
276 All tests in the same test case must use the same test fixture
277 class. However, in test case MixedUpTestCaseTest,
278 you defined test FirstTestFromNamespaceFoo and test ThisShouldFail
279 using two different test fixture classes. This can happen if
280 the two classes are from different namespaces or translation
281 units and have the same name. You should probably rename one
282 of the classes to put the tests into different test cases.
283 \e[0;31m[ FAILED ]
\e[mMixedUpTestCaseTest.ThisShouldFail
284 \e[0;32m[ RUN ]
\e[mMixedUpTestCaseTest.ThisShouldFailToo
287 All tests in the same test case must use the same test fixture
288 class. However, in test case MixedUpTestCaseTest,
289 you defined test FirstTestFromNamespaceFoo and test ThisShouldFailToo
290 using two different test fixture classes. This can happen if
291 the two classes are from different namespaces or translation
292 units and have the same name. You should probably rename one
293 of the classes to put the tests into different test cases.
294 \e[0;31m[ FAILED ]
\e[mMixedUpTestCaseTest.ThisShouldFailToo
295 \e[0;32m[----------]
\e[m2 tests from MixedUpTestCaseWithSameTestNameTest
296 \e[0;32m[ RUN ]
\e[mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
297 \e[0;32m[ OK ]
\e[mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
298 \e[0;32m[ RUN ]
\e[mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
301 All tests in the same test case must use the same test fixture
302 class. However, in test case MixedUpTestCaseWithSameTestNameTest,
303 you defined test TheSecondTestWithThisNameShouldFail and test TheSecondTestWithThisNameShouldFail
304 using two different test fixture classes. This can happen if
305 the two classes are from different namespaces or translation
306 units and have the same name. You should probably rename one
307 of the classes to put the tests into different test cases.
308 \e[0;31m[ FAILED ]
\e[mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
309 \e[0;32m[----------]
\e[m2 tests from TEST_F_before_TEST_in_same_test_case
310 \e[0;32m[ RUN ]
\e[mTEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F
311 \e[0;32m[ OK ]
\e[mTEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F
312 \e[0;32m[ RUN ]
\e[mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
315 All tests in the same test case must use the same test fixture
316 class, so mixing TEST_F and TEST in the same test case is
317 illegal. In test case TEST_F_before_TEST_in_same_test_case,
318 test DefinedUsingTEST_F is defined using TEST_F but
319 test DefinedUsingTESTAndShouldFail is defined using TEST. You probably
320 want to change the TEST to TEST_F or move it to another test
322 \e[0;31m[ FAILED ]
\e[mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
323 \e[0;32m[----------]
\e[m2 tests from TEST_before_TEST_F_in_same_test_case
324 \e[0;32m[ RUN ]
\e[mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST
325 \e[0;32m[ OK ]
\e[mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST
326 \e[0;32m[ RUN ]
\e[mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
329 All tests in the same test case must use the same test fixture
330 class, so mixing TEST_F and TEST in the same test case is
331 illegal. In test case TEST_before_TEST_F_in_same_test_case,
332 test DefinedUsingTEST_FAndShouldFail is defined using TEST_F but
333 test DefinedUsingTEST is defined using TEST. You probably
334 want to change the TEST to TEST_F or move it to another test
336 \e[0;31m[ FAILED ]
\e[mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
337 \e[0;32m[----------]
\e[m8 tests from ExpectNonfatalFailureTest
338 \e[0;32m[ RUN ]
\e[mExpectNonfatalFailureTest.CanReferenceGlobalVariables
339 \e[0;32m[ OK ]
\e[mExpectNonfatalFailureTest.CanReferenceGlobalVariables
340 \e[0;32m[ RUN ]
\e[mExpectNonfatalFailureTest.CanReferenceLocalVariables
341 \e[0;32m[ OK ]
\e[mExpectNonfatalFailureTest.CanReferenceLocalVariables
342 \e[0;32m[ RUN ]
\e[mExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure
343 \e[0;32m[ OK ]
\e[mExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure
344 \e[0;32m[ RUN ]
\e[mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
345 (expecting a failure)
347 Expected: 1 non-fatal failure
349 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
350 \e[0;32m[ RUN ]
\e[mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
351 (expecting a failure)
353 Expected: 1 non-fatal failure
355 gtest_output_test_.cc:#: Non-fatal failure:
357 Expected non-fatal failure 1.
359 gtest_output_test_.cc:#: Non-fatal failure:
361 Expected non-fatal failure 2.
363 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
364 \e[0;32m[ RUN ]
\e[mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
365 (expecting a failure)
367 Expected: 1 non-fatal failure
369 gtest_output_test_.cc:#: Fatal failure:
371 Expected fatal failure.
373 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
374 \e[0;32m[ RUN ]
\e[mExpectNonfatalFailureTest.FailsWhenStatementReturns
375 (expecting a failure)
377 Expected: 1 non-fatal failure
379 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenStatementReturns
380 \e[0;32m[ RUN ]
\e[mExpectNonfatalFailureTest.FailsWhenStatementThrows
381 (expecting a failure)
383 Expected: 1 non-fatal failure
385 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenStatementThrows
386 \e[0;32m[----------]
\e[m8 tests from ExpectFatalFailureTest
387 \e[0;32m[ RUN ]
\e[mExpectFatalFailureTest.CanReferenceGlobalVariables
388 \e[0;32m[ OK ]
\e[mExpectFatalFailureTest.CanReferenceGlobalVariables
389 \e[0;32m[ RUN ]
\e[mExpectFatalFailureTest.CanReferenceLocalStaticVariables
390 \e[0;32m[ OK ]
\e[mExpectFatalFailureTest.CanReferenceLocalStaticVariables
391 \e[0;32m[ RUN ]
\e[mExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure
392 \e[0;32m[ OK ]
\e[mExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure
393 \e[0;32m[ RUN ]
\e[mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
394 (expecting a failure)
396 Expected: 1 fatal failure
398 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
399 \e[0;32m[ RUN ]
\e[mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
400 (expecting a failure)
402 Expected: 1 fatal failure
404 gtest_output_test_.cc:#: Fatal failure:
406 Expected fatal failure.
408 gtest_output_test_.cc:#: Fatal failure:
410 Expected fatal failure.
412 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
413 \e[0;32m[ RUN ]
\e[mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
414 (expecting a failure)
416 Expected: 1 fatal failure
418 gtest_output_test_.cc:#: Non-fatal failure:
420 Expected non-fatal failure.
422 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
423 \e[0;32m[ RUN ]
\e[mExpectFatalFailureTest.FailsWhenStatementReturns
424 (expecting a failure)
426 Expected: 1 fatal failure
428 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenStatementReturns
429 \e[0;32m[ RUN ]
\e[mExpectFatalFailureTest.FailsWhenStatementThrows
430 (expecting a failure)
432 Expected: 1 fatal failure
434 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenStatementThrows
435 \e[0;32m[----------]
\e[m2 tests from TypedTest/0, where TypeParam = int
436 \e[0;32m[ RUN ]
\e[mTypedTest/0.Success
437 \e[0;32m[ OK ]
\e[mTypedTest/0.Success
438 \e[0;32m[ RUN ]
\e[mTypedTest/0.Failure
439 gtest_output_test_.cc:#: Failure
441 To be equal to: TypeParam()
444 \e[0;31m[ FAILED ]
\e[mTypedTest/0.Failure, where TypeParam = int
445 \e[0;32m[----------]
\e[m2 tests from Unsigned/TypedTestP/0, where TypeParam = unsigned char
446 \e[0;32m[ RUN ]
\e[mUnsigned/TypedTestP/0.Success
447 \e[0;32m[ OK ]
\e[mUnsigned/TypedTestP/0.Success
448 \e[0;32m[ RUN ]
\e[mUnsigned/TypedTestP/0.Failure
449 gtest_output_test_.cc:#: Failure
452 To be equal to: TypeParam()
455 \e[0;31m[ FAILED ]
\e[mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
456 \e[0;32m[----------]
\e[m2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned int
457 \e[0;32m[ RUN ]
\e[mUnsigned/TypedTestP/1.Success
458 \e[0;32m[ OK ]
\e[mUnsigned/TypedTestP/1.Success
459 \e[0;32m[ RUN ]
\e[mUnsigned/TypedTestP/1.Failure
460 gtest_output_test_.cc:#: Failure
463 To be equal to: TypeParam()
466 \e[0;31m[ FAILED ]
\e[mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
467 \e[0;32m[----------]
\e[m4 tests from ExpectFailureTest
468 \e[0;32m[ RUN ]
\e[mExpectFailureTest.ExpectFatalFailure
469 (expecting 1 failure)
471 Expected: 1 fatal failure
473 gtest_output_test_.cc:#: Success:
476 (expecting 1 failure)
478 Expected: 1 fatal failure
480 gtest_output_test_.cc:#: Non-fatal failure:
482 Expected non-fatal failure.
484 (expecting 1 failure)
486 Expected: 1 fatal failure containing "Some other fatal failure expected."
488 gtest_output_test_.cc:#: Fatal failure:
490 Expected fatal failure.
492 \e[0;31m[ FAILED ]
\e[mExpectFailureTest.ExpectFatalFailure
493 \e[0;32m[ RUN ]
\e[mExpectFailureTest.ExpectNonFatalFailure
494 (expecting 1 failure)
496 Expected: 1 non-fatal failure
498 gtest_output_test_.cc:#: Success:
501 (expecting 1 failure)
503 Expected: 1 non-fatal failure
505 gtest_output_test_.cc:#: Fatal failure:
507 Expected fatal failure.
509 (expecting 1 failure)
511 Expected: 1 non-fatal failure containing "Some other non-fatal failure."
513 gtest_output_test_.cc:#: Non-fatal failure:
515 Expected non-fatal failure.
517 \e[0;31m[ FAILED ]
\e[mExpectFailureTest.ExpectNonFatalFailure
518 \e[0;32m[ RUN ]
\e[mExpectFailureTest.ExpectFatalFailureOnAllThreads
519 (expecting 1 failure)
521 Expected: 1 fatal failure
523 gtest_output_test_.cc:#: Success:
526 (expecting 1 failure)
528 Expected: 1 fatal failure
530 gtest_output_test_.cc:#: Non-fatal failure:
532 Expected non-fatal failure.
534 (expecting 1 failure)
536 Expected: 1 fatal failure containing "Some other fatal failure expected."
538 gtest_output_test_.cc:#: Fatal failure:
540 Expected fatal failure.
542 \e[0;31m[ FAILED ]
\e[mExpectFailureTest.ExpectFatalFailureOnAllThreads
543 \e[0;32m[ RUN ]
\e[mExpectFailureTest.ExpectNonFatalFailureOnAllThreads
544 (expecting 1 failure)
546 Expected: 1 non-fatal failure
548 gtest_output_test_.cc:#: Success:
551 (expecting 1 failure)
553 Expected: 1 non-fatal failure
555 gtest_output_test_.cc:#: Fatal failure:
557 Expected fatal failure.
559 (expecting 1 failure)
561 Expected: 1 non-fatal failure containing "Some other non-fatal failure."
563 gtest_output_test_.cc:#: Non-fatal failure:
565 Expected non-fatal failure.
567 \e[0;31m[ FAILED ]
\e[mExpectFailureTest.ExpectNonFatalFailureOnAllThreads
568 \e[0;32m[----------]
\e[m2 tests from ExpectFailureWithThreadsTest
569 \e[0;32m[ RUN ]
\e[mExpectFailureWithThreadsTest.ExpectFatalFailure
570 (expecting 2 failures)
571 gtest_output_test_.cc:#: Failure
573 Expected fatal failure.
575 Expected: 1 fatal failure
577 \e[0;31m[ FAILED ]
\e[mExpectFailureWithThreadsTest.ExpectFatalFailure
578 \e[0;32m[ RUN ]
\e[mExpectFailureWithThreadsTest.ExpectNonFatalFailure
579 (expecting 2 failures)
580 gtest_output_test_.cc:#: Failure
582 Expected non-fatal failure.
584 Expected: 1 non-fatal failure
586 \e[0;31m[ FAILED ]
\e[mExpectFailureWithThreadsTest.ExpectNonFatalFailure
587 \e[0;32m[----------]
\e[m1 test from ScopedFakeTestPartResultReporterTest
588 \e[0;32m[ RUN ]
\e[mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
589 (expecting 2 failures)
590 gtest_output_test_.cc:#: Failure
592 Expected fatal failure.
593 gtest_output_test_.cc:#: Failure
595 Expected non-fatal failure.
596 \e[0;31m[ FAILED ]
\e[mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
597 \e[0;32m[----------]
\e[m1 test from PrintingFailingParams/FailingParamTest
598 \e[0;32m[ RUN ]
\e[mPrintingFailingParams/FailingParamTest.Fails/0
599 gtest_output_test_.cc:#: Failure
601 To be equal to: GetParam()
603 \e[0;31m[ FAILED ]
\e[mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
604 \e[0;32m[----------]
\e[m2 tests from PrintingStrings/ParamTest
605 \e[0;32m[ RUN ]
\e[mPrintingStrings/ParamTest.Success/a
606 \e[0;32m[ OK ]
\e[mPrintingStrings/ParamTest.Success/a
607 \e[0;32m[ RUN ]
\e[mPrintingStrings/ParamTest.Failure/a
608 gtest_output_test_.cc:#: Failure
610 To be equal to: GetParam()
613 \e[0;31m[ FAILED ]
\e[mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
614 \e[0;32m[----------]
\e[mGlobal test environment tear-down
615 BarEnvironment::TearDown() called.
616 gtest_output_test_.cc:#: Failure
618 Expected non-fatal failure.
619 FooEnvironment::TearDown() called.
620 gtest_output_test_.cc:#: Failure
622 Expected fatal failure.
623 \e[0;32m[==========]
\e[m66 tests from 29 test cases ran.
624 \e[0;32m[ PASSED ]
\e[m22 tests.
625 \e[0;31m[ FAILED ]
\e[m44 tests, listed below:
626 \e[0;31m[ FAILED ]
\e[mNonfatalFailureTest.EscapesStringOperands
627 \e[0;31m[ FAILED ]
\e[mNonfatalFailureTest.DiffForLongStrings
628 \e[0;31m[ FAILED ]
\e[mFatalFailureTest.FatalFailureInSubroutine
629 \e[0;31m[ FAILED ]
\e[mFatalFailureTest.FatalFailureInNestedSubroutine
630 \e[0;31m[ FAILED ]
\e[mFatalFailureTest.NonfatalFailureInSubroutine
631 \e[0;31m[ FAILED ]
\e[mLoggingTest.InterleavingLoggingAndAssertions
632 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.ObeysScopes
633 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.WorksInLoop
634 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.WorksInSubroutine
635 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.CanBeNested
636 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.CanBeRepeated
637 \e[0;31m[ FAILED ]
\e[mSCOPED_TRACETest.WorksConcurrently
638 \e[0;31m[ FAILED ]
\e[mNonFatalFailureInFixtureConstructorTest.FailureInConstructor
639 \e[0;31m[ FAILED ]
\e[mFatalFailureInFixtureConstructorTest.FailureInConstructor
640 \e[0;31m[ FAILED ]
\e[mNonFatalFailureInSetUpTest.FailureInSetUp
641 \e[0;31m[ FAILED ]
\e[mFatalFailureInSetUpTest.FailureInSetUp
642 \e[0;31m[ FAILED ]
\e[mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
643 \e[0;31m[ FAILED ]
\e[mMixedUpTestCaseTest.ThisShouldFail
644 \e[0;31m[ FAILED ]
\e[mMixedUpTestCaseTest.ThisShouldFailToo
645 \e[0;31m[ FAILED ]
\e[mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
646 \e[0;31m[ FAILED ]
\e[mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
647 \e[0;31m[ FAILED ]
\e[mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
648 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
649 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
650 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
651 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenStatementReturns
652 \e[0;31m[ FAILED ]
\e[mExpectNonfatalFailureTest.FailsWhenStatementThrows
653 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
654 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
655 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
656 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenStatementReturns
657 \e[0;31m[ FAILED ]
\e[mExpectFatalFailureTest.FailsWhenStatementThrows
658 \e[0;31m[ FAILED ]
\e[mTypedTest/0.Failure, where TypeParam = int
659 \e[0;31m[ FAILED ]
\e[mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
660 \e[0;31m[ FAILED ]
\e[mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
661 \e[0;31m[ FAILED ]
\e[mExpectFailureTest.ExpectFatalFailure
662 \e[0;31m[ FAILED ]
\e[mExpectFailureTest.ExpectNonFatalFailure
663 \e[0;31m[ FAILED ]
\e[mExpectFailureTest.ExpectFatalFailureOnAllThreads
664 \e[0;31m[ FAILED ]
\e[mExpectFailureTest.ExpectNonFatalFailureOnAllThreads
665 \e[0;31m[ FAILED ]
\e[mExpectFailureWithThreadsTest.ExpectFatalFailure
666 \e[0;31m[ FAILED ]
\e[mExpectFailureWithThreadsTest.ExpectNonFatalFailure
667 \e[0;31m[ FAILED ]
\e[mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
668 \e[0;31m[ FAILED ]
\e[mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
669 \e[0;31m[ FAILED ]
\e[mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
672 \e[0;33m YOU HAVE 1 DISABLED TEST
674 \e[mNote: Google Test filter = FatalFailureTest.*:LoggingTest.*
675 [==========] Running 4 tests from 2 test cases.
676 [----------] Global test environment set-up.
677 [----------] 3 tests from FatalFailureTest
678 [ RUN ] FatalFailureTest.FatalFailureInSubroutine
679 (expecting a failure that x should be 1)
680 gtest_output_test_.cc:#: Failure
684 [ FAILED ] FatalFailureTest.FatalFailureInSubroutine (? ms)
685 [ RUN ] FatalFailureTest.FatalFailureInNestedSubroutine
686 (expecting a failure that x should be 1)
687 gtest_output_test_.cc:#: Failure
691 [ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms)
692 [ RUN ] FatalFailureTest.NonfatalFailureInSubroutine
693 (expecting a failure on false)
694 gtest_output_test_.cc:#: Failure
698 [ FAILED ] FatalFailureTest.NonfatalFailureInSubroutine (? ms)
699 [----------] 3 tests from FatalFailureTest (? ms total)
701 [----------] 1 test from LoggingTest
702 [ RUN ] LoggingTest.InterleavingLoggingAndAssertions
703 (expecting 2 failures on (3) >= (a[i]))
706 gtest_output_test_.cc:#: Failure
707 Expected: (3) >= (a[i]), actual: 3 vs 9
710 gtest_output_test_.cc:#: Failure
711 Expected: (3) >= (a[i]), actual: 3 vs 6
712 [ FAILED ] LoggingTest.InterleavingLoggingAndAssertions (? ms)
713 [----------] 1 test from LoggingTest (? ms total)
715 [----------] Global test environment tear-down
716 [==========] 4 tests from 2 test cases ran. (? ms total)
718 [ FAILED ] 4 tests, listed below:
719 [ FAILED ] FatalFailureTest.FatalFailureInSubroutine
720 [ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine
721 [ FAILED ] FatalFailureTest.NonfatalFailureInSubroutine
722 [ FAILED ] LoggingTest.InterleavingLoggingAndAssertions
725 Note: Google Test filter = *DISABLED_*
726 [==========] Running 1 test from 1 test case.
727 [----------] Global test environment set-up.
728 [----------] 1 test from DisabledTestsWarningTest
729 [ RUN ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning
730 [ OK ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning
731 [----------] Global test environment tear-down
732 [==========] 1 test from 1 test case ran.
734 Note: Google Test filter = PassingTest.*
735 Note: This is test shard 2 of 2.
736 [==========] Running 1 test from 1 test case.
737 [----------] Global test environment set-up.
738 [----------] 1 test from PassingTest
739 [ RUN ] PassingTest.PassingTest2
740 [ OK ] PassingTest.PassingTest2
741 [----------] Global test environment tear-down
742 [==========] 1 test from 1 test case ran.