1The non-test part of the code is expected to have 2 failures.
2
3gtest_output_test_.cc:#: Failure
4Value of: false
5  Actual: false
6Expected: true
7gtest_output_test_.cc:#: Failure
8Value of: 3
9Expected: 2
10[==========] Running 62 tests from 27 test cases.
11[----------] Global test environment set-up.
12FooEnvironment::SetUp() called.
13BarEnvironment::SetUp() called.
14[----------] 1 test from ADeathTest
15[ RUN      ] ADeathTest.ShouldRunFirst
16[       OK ] ADeathTest.ShouldRunFirst
17[----------] 1 test from ATypedDeathTest/0, where TypeParam = int
18[ RUN      ] ATypedDeathTest/0.ShouldRunFirst
19[       OK ] ATypedDeathTest/0.ShouldRunFirst
20[----------] 1 test from ATypedDeathTest/1, where TypeParam = double
21[ RUN      ] ATypedDeathTest/1.ShouldRunFirst
22[       OK ] ATypedDeathTest/1.ShouldRunFirst
23[----------] 1 test from My/ATypeParamDeathTest/0, where TypeParam = int
24[ RUN      ] My/ATypeParamDeathTest/0.ShouldRunFirst
25[       OK ] My/ATypeParamDeathTest/0.ShouldRunFirst
26[----------] 1 test from My/ATypeParamDeathTest/1, where TypeParam = double
27[ RUN      ] My/ATypeParamDeathTest/1.ShouldRunFirst
28[       OK ] My/ATypeParamDeathTest/1.ShouldRunFirst
29[----------] 2 tests from PassingTest
30[ RUN      ] PassingTest.PassingTest1
31[       OK ] PassingTest.PassingTest1
32[ RUN      ] PassingTest.PassingTest2
33[       OK ] PassingTest.PassingTest2
34[----------] 3 tests from FatalFailureTest
35[ RUN      ] FatalFailureTest.FatalFailureInSubroutine
36(expecting a failure that x should be 1)
37gtest_output_test_.cc:#: Failure
38Value of: x
39  Actual: 2
40Expected: 1
41[  FAILED  ] FatalFailureTest.FatalFailureInSubroutine
42[ RUN      ] FatalFailureTest.FatalFailureInNestedSubroutine
43(expecting a failure that x should be 1)
44gtest_output_test_.cc:#: Failure
45Value of: x
46  Actual: 2
47Expected: 1
48[  FAILED  ] FatalFailureTest.FatalFailureInNestedSubroutine
49[ RUN      ] FatalFailureTest.NonfatalFailureInSubroutine
50(expecting a failure on false)
51gtest_output_test_.cc:#: Failure
52Value of: false
53  Actual: false
54Expected: true
55[  FAILED  ] FatalFailureTest.NonfatalFailureInSubroutine
56[----------] 1 test from LoggingTest
57[ RUN      ] LoggingTest.InterleavingLoggingAndAssertions
58(expecting 2 failures on (3) >= (a[i]))
59i == 0
60i == 1
61gtest_output_test_.cc:#: Failure
62Expected: (3) >= (a[i]), actual: 3 vs 9
63i == 2
64i == 3
65gtest_output_test_.cc:#: Failure
66Expected: (3) >= (a[i]), actual: 3 vs 6
67[  FAILED  ] LoggingTest.InterleavingLoggingAndAssertions
68[----------] 6 tests from SCOPED_TRACETest
69[ RUN      ] SCOPED_TRACETest.ObeysScopes
70(expected to fail)
71gtest_output_test_.cc:#: Failure
72Failed
73This failure is expected, and shouldn't have a trace.
74gtest_output_test_.cc:#: Failure
75Failed
76This failure is expected, and should have a trace.
77Google Test trace:
78gtest_output_test_.cc:#: Expected trace
79gtest_output_test_.cc:#: Failure
80Failed
81This failure is expected, and shouldn't have a trace.
82[  FAILED  ] SCOPED_TRACETest.ObeysScopes
83[ RUN      ] SCOPED_TRACETest.WorksInLoop
84(expected to fail)
85gtest_output_test_.cc:#: Failure
86Value of: n
87  Actual: 1
88Expected: 2
89Google Test trace:
90gtest_output_test_.cc:#: i = 1
91gtest_output_test_.cc:#: Failure
92Value of: n
93  Actual: 2
94Expected: 1
95Google Test trace:
96gtest_output_test_.cc:#: i = 2
97[  FAILED  ] SCOPED_TRACETest.WorksInLoop
98[ RUN      ] SCOPED_TRACETest.WorksInSubroutine
99(expected to fail)
100gtest_output_test_.cc:#: Failure
101Value of: n
102  Actual: 1
103Expected: 2
104Google Test trace:
105gtest_output_test_.cc:#: n = 1
106gtest_output_test_.cc:#: Failure
107Value of: n
108  Actual: 2
109Expected: 1
110Google Test trace:
111gtest_output_test_.cc:#: n = 2
112[  FAILED  ] SCOPED_TRACETest.WorksInSubroutine
113[ RUN      ] SCOPED_TRACETest.CanBeNested
114(expected to fail)
115gtest_output_test_.cc:#: Failure
116Value of: n
117  Actual: 2
118Expected: 1
119Google Test trace:
120gtest_output_test_.cc:#: n = 2
121gtest_output_test_.cc:#:
122[  FAILED  ] SCOPED_TRACETest.CanBeNested
123[ RUN      ] SCOPED_TRACETest.CanBeRepeated
124(expected to fail)
125gtest_output_test_.cc:#: Failure
126Failed
127This failure is expected, and should contain trace point A.
128Google Test trace:
129gtest_output_test_.cc:#: A
130gtest_output_test_.cc:#: Failure
131Failed
132This failure is expected, and should contain trace point A and B.
133Google Test trace:
134gtest_output_test_.cc:#: B
135gtest_output_test_.cc:#: A
136gtest_output_test_.cc:#: Failure
137Failed
138This failure is expected, and should contain trace point A, B, and C.
139Google Test trace:
140gtest_output_test_.cc:#: C
141gtest_output_test_.cc:#: B
142gtest_output_test_.cc:#: A
143gtest_output_test_.cc:#: Failure
144Failed
145This failure is expected, and should contain trace point A, B, and D.
146Google Test trace:
147gtest_output_test_.cc:#: D
148gtest_output_test_.cc:#: B
149gtest_output_test_.cc:#: A
150[  FAILED  ] SCOPED_TRACETest.CanBeRepeated
151[ RUN      ] SCOPED_TRACETest.WorksConcurrently
152(expecting 6 failures)
153gtest_output_test_.cc:#: Failure
154Failed
155Expected failure #1 (in thread B, only trace B alive).
156Google Test trace:
157gtest_output_test_.cc:#: Trace B
158gtest_output_test_.cc:#: Failure
159Failed
160Expected failure #2 (in thread A, trace A & B both alive).
161Google Test trace:
162gtest_output_test_.cc:#: Trace A
163gtest_output_test_.cc:#: Failure
164Failed
165Expected failure #3 (in thread B, trace A & B both alive).
166Google Test trace:
167gtest_output_test_.cc:#: Trace B
168gtest_output_test_.cc:#: Failure
169Failed
170Expected failure #4 (in thread B, only trace A alive).
171gtest_output_test_.cc:#: Failure
172Failed
173Expected failure #5 (in thread A, only trace A alive).
174Google Test trace:
175gtest_output_test_.cc:#: Trace A
176gtest_output_test_.cc:#: Failure
177Failed
178Expected failure #6 (in thread A, no trace alive).
179[  FAILED  ] SCOPED_TRACETest.WorksConcurrently
180[----------] 1 test from NonFatalFailureInFixtureConstructorTest
181[ RUN      ] NonFatalFailureInFixtureConstructorTest.FailureInConstructor
182(expecting 5 failures)
183gtest_output_test_.cc:#: Failure
184Failed
185Expected failure #1, in the test fixture c'tor.
186gtest_output_test_.cc:#: Failure
187Failed
188Expected failure #2, in SetUp().
189gtest_output_test_.cc:#: Failure
190Failed
191Expected failure #3, in the test body.
192gtest_output_test_.cc:#: Failure
193Failed
194Expected failure #4, in TearDown.
195gtest_output_test_.cc:#: Failure
196Failed
197Expected failure #5, in the test fixture d'tor.
198[  FAILED  ] NonFatalFailureInFixtureConstructorTest.FailureInConstructor
199[----------] 1 test from FatalFailureInFixtureConstructorTest
200[ RUN      ] FatalFailureInFixtureConstructorTest.FailureInConstructor
201(expecting 2 failures)
202gtest_output_test_.cc:#: Failure
203Failed
204Expected failure #1, in the test fixture c'tor.
205gtest_output_test_.cc:#: Failure
206Failed
207Expected failure #2, in the test fixture d'tor.
208[  FAILED  ] FatalFailureInFixtureConstructorTest.FailureInConstructor
209[----------] 1 test from NonFatalFailureInSetUpTest
210[ RUN      ] NonFatalFailureInSetUpTest.FailureInSetUp
211(expecting 4 failures)
212gtest_output_test_.cc:#: Failure
213Failed
214Expected failure #1, in SetUp().
215gtest_output_test_.cc:#: Failure
216Failed
217Expected failure #2, in the test function.
218gtest_output_test_.cc:#: Failure
219Failed
220Expected failure #3, in TearDown().
221gtest_output_test_.cc:#: Failure
222Failed
223Expected failure #4, in the test fixture d'tor.
224[  FAILED  ] NonFatalFailureInSetUpTest.FailureInSetUp
225[----------] 1 test from FatalFailureInSetUpTest
226[ RUN      ] FatalFailureInSetUpTest.FailureInSetUp
227(expecting 3 failures)
228gtest_output_test_.cc:#: Failure
229Failed
230Expected failure #1, in SetUp().
231gtest_output_test_.cc:#: Failure
232Failed
233Expected failure #2, in TearDown().
234gtest_output_test_.cc:#: Failure
235Failed
236Expected failure #3, in the test fixture d'tor.
237[  FAILED  ] FatalFailureInSetUpTest.FailureInSetUp
238[----------] 1 test from AddFailureAtTest
239[ RUN      ] AddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
240foo.cc:42: Failure
241Failed
242Expected failure in foo.cc
243[  FAILED  ] AddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
244[----------] 4 tests from MixedUpTestCaseTest
245[ RUN      ] MixedUpTestCaseTest.FirstTestFromNamespaceFoo
246[       OK ] MixedUpTestCaseTest.FirstTestFromNamespaceFoo
247[ RUN      ] MixedUpTestCaseTest.SecondTestFromNamespaceFoo
248[       OK ] MixedUpTestCaseTest.SecondTestFromNamespaceFoo
249[ RUN      ] MixedUpTestCaseTest.ThisShouldFail
250gtest.cc:#: Failure
251Failed
252All tests in the same test case must use the same test fixture
253class.  However, in test case MixedUpTestCaseTest,
254you defined test FirstTestFromNamespaceFoo and test ThisShouldFail
255using two different test fixture classes.  This can happen if
256the two classes are from different namespaces or translation
257units and have the same name.  You should probably rename one
258of the classes to put the tests into different test cases.
259[  FAILED  ] MixedUpTestCaseTest.ThisShouldFail
260[ RUN      ] MixedUpTestCaseTest.ThisShouldFailToo
261gtest.cc:#: Failure
262Failed
263All tests in the same test case must use the same test fixture
264class.  However, in test case MixedUpTestCaseTest,
265you defined test FirstTestFromNamespaceFoo and test ThisShouldFailToo
266using two different test fixture classes.  This can happen if
267the two classes are from different namespaces or translation
268units and have the same name.  You should probably rename one
269of the classes to put the tests into different test cases.
270[  FAILED  ] MixedUpTestCaseTest.ThisShouldFailToo
271[----------] 2 tests from MixedUpTestCaseWithSameTestNameTest
272[ RUN      ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
273[       OK ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
274[ RUN      ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
275gtest.cc:#: Failure
276Failed
277All tests in the same test case must use the same test fixture
278class.  However, in test case MixedUpTestCaseWithSameTestNameTest,
279you defined test TheSecondTestWithThisNameShouldFail and test TheSecondTestWithThisNameShouldFail
280using two different test fixture classes.  This can happen if
281the two classes are from different namespaces or translation
282units and have the same name.  You should probably rename one
283of the classes to put the tests into different test cases.
284[  FAILED  ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
285[----------] 2 tests from TEST_F_before_TEST_in_same_test_case
286[ RUN      ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F
287[       OK ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F
288[ RUN      ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
289gtest.cc:#: Failure
290Failed
291All tests in the same test case must use the same test fixture
292class, so mixing TEST_F and TEST in the same test case is
293illegal.  In test case TEST_F_before_TEST_in_same_test_case,
294test DefinedUsingTEST_F is defined using TEST_F but
295test DefinedUsingTESTAndShouldFail is defined using TEST.  You probably
296want to change the TEST to TEST_F or move it to another test
297case.
298[  FAILED  ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
299[----------] 2 tests from TEST_before_TEST_F_in_same_test_case
300[ RUN      ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST
301[       OK ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST
302[ RUN      ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
303gtest.cc:#: Failure
304Failed
305All tests in the same test case must use the same test fixture
306class, so mixing TEST_F and TEST in the same test case is
307illegal.  In test case TEST_before_TEST_F_in_same_test_case,
308test DefinedUsingTEST_FAndShouldFail is defined using TEST_F but
309test DefinedUsingTEST is defined using TEST.  You probably
310want to change the TEST to TEST_F or move it to another test
311case.
312[  FAILED  ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
313[----------] 8 tests from ExpectNonfatalFailureTest
314[ RUN      ] ExpectNonfatalFailureTest.CanReferenceGlobalVariables
315[       OK ] ExpectNonfatalFailureTest.CanReferenceGlobalVariables
316[ RUN      ] ExpectNonfatalFailureTest.CanReferenceLocalVariables
317[       OK ] ExpectNonfatalFailureTest.CanReferenceLocalVariables
318[ RUN      ] ExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure
319[       OK ] ExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure
320[ RUN      ] ExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
321(expecting a failure)
322gtest.cc:#: Failure
323Expected: 1 non-fatal failure
324  Actual: 0 failures
325[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
326[ RUN      ] ExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
327(expecting a failure)
328gtest.cc:#: Failure
329Expected: 1 non-fatal failure
330  Actual: 2 failures
331gtest_output_test_.cc:#: Non-fatal failure:
332Failed
333Expected non-fatal failure 1.
334
335gtest_output_test_.cc:#: Non-fatal failure:
336Failed
337Expected non-fatal failure 2.
338
339[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
340[ RUN      ] ExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
341(expecting a failure)
342gtest.cc:#: Failure
343Expected: 1 non-fatal failure
344  Actual:
345gtest_output_test_.cc:#: Fatal failure:
346Failed
347Expected fatal failure.
348
349[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
350[ RUN      ] ExpectNonfatalFailureTest.FailsWhenStatementReturns
351(expecting a failure)
352gtest.cc:#: Failure
353Expected: 1 non-fatal failure
354  Actual: 0 failures
355[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenStatementReturns
356[ RUN      ] ExpectNonfatalFailureTest.FailsWhenStatementThrows
357(expecting a failure)
358gtest.cc:#: Failure
359Expected: 1 non-fatal failure
360  Actual: 0 failures
361[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenStatementThrows
362[----------] 8 tests from ExpectFatalFailureTest
363[ RUN      ] ExpectFatalFailureTest.CanReferenceGlobalVariables
364[       OK ] ExpectFatalFailureTest.CanReferenceGlobalVariables
365[ RUN      ] ExpectFatalFailureTest.CanReferenceLocalStaticVariables
366[       OK ] ExpectFatalFailureTest.CanReferenceLocalStaticVariables
367[ RUN      ] ExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure
368[       OK ] ExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure
369[ RUN      ] ExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
370(expecting a failure)
371gtest.cc:#: Failure
372Expected: 1 fatal failure
373  Actual: 0 failures
374[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
375[ RUN      ] ExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
376(expecting a failure)
377gtest.cc:#: Failure
378Expected: 1 fatal failure
379  Actual: 2 failures
380gtest_output_test_.cc:#: Fatal failure:
381Failed
382Expected fatal failure.
383
384gtest_output_test_.cc:#: Fatal failure:
385Failed
386Expected fatal failure.
387
388[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
389[ RUN      ] ExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
390(expecting a failure)
391gtest.cc:#: Failure
392Expected: 1 fatal failure
393  Actual:
394gtest_output_test_.cc:#: Non-fatal failure:
395Failed
396Expected non-fatal failure.
397
398[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
399[ RUN      ] ExpectFatalFailureTest.FailsWhenStatementReturns
400(expecting a failure)
401gtest.cc:#: Failure
402Expected: 1 fatal failure
403  Actual: 0 failures
404[  FAILED  ] ExpectFatalFailureTest.FailsWhenStatementReturns
405[ RUN      ] ExpectFatalFailureTest.FailsWhenStatementThrows
406(expecting a failure)
407gtest.cc:#: Failure
408Expected: 1 fatal failure
409  Actual: 0 failures
410[  FAILED  ] ExpectFatalFailureTest.FailsWhenStatementThrows
411[----------] 2 tests from TypedTest/0, where TypeParam = int
412[ RUN      ] TypedTest/0.Success
413[       OK ] TypedTest/0.Success
414[ RUN      ] TypedTest/0.Failure
415gtest_output_test_.cc:#: Failure
416Value of: TypeParam()
417  Actual: 0
418Expected: 1
419Expected failure
420[  FAILED  ] TypedTest/0.Failure, where TypeParam = int
421[----------] 2 tests from Unsigned/TypedTestP/0, where TypeParam = unsigned char
422[ RUN      ] Unsigned/TypedTestP/0.Success
423[       OK ] Unsigned/TypedTestP/0.Success
424[ RUN      ] Unsigned/TypedTestP/0.Failure
425gtest_output_test_.cc:#: Failure
426Value of: TypeParam()
427  Actual: '\0'
428Expected: 1U
429Which is: 1
430Expected failure
431[  FAILED  ] Unsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
432[----------] 2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned int
433[ RUN      ] Unsigned/TypedTestP/1.Success
434[       OK ] Unsigned/TypedTestP/1.Success
435[ RUN      ] Unsigned/TypedTestP/1.Failure
436gtest_output_test_.cc:#: Failure
437Value of: TypeParam()
438  Actual: 0
439Expected: 1U
440Which is: 1
441Expected failure
442[  FAILED  ] Unsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
443[----------] 4 tests from ExpectFailureTest
444[ RUN      ] ExpectFailureTest.ExpectFatalFailure
445(expecting 1 failure)
446gtest.cc:#: Failure
447Expected: 1 fatal failure
448  Actual:
449gtest_output_test_.cc:#: Success:
450Succeeded
451
452(expecting 1 failure)
453gtest.cc:#: Failure
454Expected: 1 fatal failure
455  Actual:
456gtest_output_test_.cc:#: Non-fatal failure:
457Failed
458Expected non-fatal failure.
459
460(expecting 1 failure)
461gtest.cc:#: Failure
462Expected: 1 fatal failure containing "Some other fatal failure expected."
463  Actual:
464gtest_output_test_.cc:#: Fatal failure:
465Failed
466Expected fatal failure.
467
468[  FAILED  ] ExpectFailureTest.ExpectFatalFailure
469[ RUN      ] ExpectFailureTest.ExpectNonFatalFailure
470(expecting 1 failure)
471gtest.cc:#: Failure
472Expected: 1 non-fatal failure
473  Actual:
474gtest_output_test_.cc:#: Success:
475Succeeded
476
477(expecting 1 failure)
478gtest.cc:#: Failure
479Expected: 1 non-fatal failure
480  Actual:
481gtest_output_test_.cc:#: Fatal failure:
482Failed
483Expected fatal failure.
484
485(expecting 1 failure)
486gtest.cc:#: Failure
487Expected: 1 non-fatal failure containing "Some other non-fatal failure."
488  Actual:
489gtest_output_test_.cc:#: Non-fatal failure:
490Failed
491Expected non-fatal failure.
492
493[  FAILED  ] ExpectFailureTest.ExpectNonFatalFailure
494[ RUN      ] ExpectFailureTest.ExpectFatalFailureOnAllThreads
495(expecting 1 failure)
496gtest.cc:#: Failure
497Expected: 1 fatal failure
498  Actual:
499gtest_output_test_.cc:#: Success:
500Succeeded
501
502(expecting 1 failure)
503gtest.cc:#: Failure
504Expected: 1 fatal failure
505  Actual:
506gtest_output_test_.cc:#: Non-fatal failure:
507Failed
508Expected non-fatal failure.
509
510(expecting 1 failure)
511gtest.cc:#: Failure
512Expected: 1 fatal failure containing "Some other fatal failure expected."
513  Actual:
514gtest_output_test_.cc:#: Fatal failure:
515Failed
516Expected fatal failure.
517
518[  FAILED  ] ExpectFailureTest.ExpectFatalFailureOnAllThreads
519[ RUN      ] ExpectFailureTest.ExpectNonFatalFailureOnAllThreads
520(expecting 1 failure)
521gtest.cc:#: Failure
522Expected: 1 non-fatal failure
523  Actual:
524gtest_output_test_.cc:#: Success:
525Succeeded
526
527(expecting 1 failure)
528gtest.cc:#: Failure
529Expected: 1 non-fatal failure
530  Actual:
531gtest_output_test_.cc:#: Fatal failure:
532Failed
533Expected fatal failure.
534
535(expecting 1 failure)
536gtest.cc:#: Failure
537Expected: 1 non-fatal failure containing "Some other non-fatal failure."
538  Actual:
539gtest_output_test_.cc:#: Non-fatal failure:
540Failed
541Expected non-fatal failure.
542
543[  FAILED  ] ExpectFailureTest.ExpectNonFatalFailureOnAllThreads
544[----------] 2 tests from ExpectFailureWithThreadsTest
545[ RUN      ] ExpectFailureWithThreadsTest.ExpectFatalFailure
546(expecting 2 failures)
547gtest_output_test_.cc:#: Failure
548Failed
549Expected fatal failure.
550gtest.cc:#: Failure
551Expected: 1 fatal failure
552  Actual: 0 failures
553[  FAILED  ] ExpectFailureWithThreadsTest.ExpectFatalFailure
554[ RUN      ] ExpectFailureWithThreadsTest.ExpectNonFatalFailure
555(expecting 2 failures)
556gtest_output_test_.cc:#: Failure
557Failed
558Expected non-fatal failure.
559gtest.cc:#: Failure
560Expected: 1 non-fatal failure
561  Actual: 0 failures
562[  FAILED  ] ExpectFailureWithThreadsTest.ExpectNonFatalFailure
563[----------] 1 test from ScopedFakeTestPartResultReporterTest
564[ RUN      ] ScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
565(expecting 2 failures)
566gtest_output_test_.cc:#: Failure
567Failed
568Expected fatal failure.
569gtest_output_test_.cc:#: Failure
570Failed
571Expected non-fatal failure.
572[  FAILED  ] ScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
573[----------] 1 test from PrintingFailingParams/FailingParamTest
574[ RUN      ] PrintingFailingParams/FailingParamTest.Fails/0
575gtest_output_test_.cc:#: Failure
576Value of: GetParam()
577  Actual: 2
578Expected: 1
579[  FAILED  ] PrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
580[----------] Global test environment tear-down
581BarEnvironment::TearDown() called.
582gtest_output_test_.cc:#: Failure
583Failed
584Expected non-fatal failure.
585FooEnvironment::TearDown() called.
586gtest_output_test_.cc:#: Failure
587Failed
588Expected fatal failure.
589[==========] 62 tests from 27 test cases ran.
590[  PASSED  ] 21 tests.
591[  FAILED  ] 41 tests, listed below:
592[  FAILED  ] FatalFailureTest.FatalFailureInSubroutine
593[  FAILED  ] FatalFailureTest.FatalFailureInNestedSubroutine
594[  FAILED  ] FatalFailureTest.NonfatalFailureInSubroutine
595[  FAILED  ] LoggingTest.InterleavingLoggingAndAssertions
596[  FAILED  ] SCOPED_TRACETest.ObeysScopes
597[  FAILED  ] SCOPED_TRACETest.WorksInLoop
598[  FAILED  ] SCOPED_TRACETest.WorksInSubroutine
599[  FAILED  ] SCOPED_TRACETest.CanBeNested
600[  FAILED  ] SCOPED_TRACETest.CanBeRepeated
601[  FAILED  ] SCOPED_TRACETest.WorksConcurrently
602[  FAILED  ] NonFatalFailureInFixtureConstructorTest.FailureInConstructor
603[  FAILED  ] FatalFailureInFixtureConstructorTest.FailureInConstructor
604[  FAILED  ] NonFatalFailureInSetUpTest.FailureInSetUp
605[  FAILED  ] FatalFailureInSetUpTest.FailureInSetUp
606[  FAILED  ] AddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
607[  FAILED  ] MixedUpTestCaseTest.ThisShouldFail
608[  FAILED  ] MixedUpTestCaseTest.ThisShouldFailToo
609[  FAILED  ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
610[  FAILED  ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
611[  FAILED  ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
612[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
613[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
614[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
615[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenStatementReturns
616[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenStatementThrows
617[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
618[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
619[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
620[  FAILED  ] ExpectFatalFailureTest.FailsWhenStatementReturns
621[  FAILED  ] ExpectFatalFailureTest.FailsWhenStatementThrows
622[  FAILED  ] TypedTest/0.Failure, where TypeParam = int
623[  FAILED  ] Unsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
624[  FAILED  ] Unsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
625[  FAILED  ] ExpectFailureTest.ExpectFatalFailure
626[  FAILED  ] ExpectFailureTest.ExpectNonFatalFailure
627[  FAILED  ] ExpectFailureTest.ExpectFatalFailureOnAllThreads
628[  FAILED  ] ExpectFailureTest.ExpectNonFatalFailureOnAllThreads
629[  FAILED  ] ExpectFailureWithThreadsTest.ExpectFatalFailure
630[  FAILED  ] ExpectFailureWithThreadsTest.ExpectNonFatalFailure
631[  FAILED  ] ScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
632[  FAILED  ] PrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
633
63441 FAILED TESTS
635  YOU HAVE 1 DISABLED TEST
636
637Note: Google Test filter = FatalFailureTest.*:LoggingTest.*
638[==========] Running 4 tests from 2 test cases.
639[----------] Global test environment set-up.
640[----------] 3 tests from FatalFailureTest
641[ RUN      ] FatalFailureTest.FatalFailureInSubroutine
642(expecting a failure that x should be 1)
643gtest_output_test_.cc:#: Failure
644Value of: x
645  Actual: 2
646Expected: 1
647[  FAILED  ] FatalFailureTest.FatalFailureInSubroutine (? ms)
648[ RUN      ] FatalFailureTest.FatalFailureInNestedSubroutine
649(expecting a failure that x should be 1)
650gtest_output_test_.cc:#: Failure
651Value of: x
652  Actual: 2
653Expected: 1
654[  FAILED  ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms)
655[ RUN      ] FatalFailureTest.NonfatalFailureInSubroutine
656(expecting a failure on false)
657gtest_output_test_.cc:#: Failure
658Value of: false
659  Actual: false
660Expected: true
661[  FAILED  ] FatalFailureTest.NonfatalFailureInSubroutine (? ms)
662[----------] 3 tests from FatalFailureTest (? ms total)
663
664[----------] 1 test from LoggingTest
665[ RUN      ] LoggingTest.InterleavingLoggingAndAssertions
666(expecting 2 failures on (3) >= (a[i]))
667i == 0
668i == 1
669gtest_output_test_.cc:#: Failure
670Expected: (3) >= (a[i]), actual: 3 vs 9
671i == 2
672i == 3
673gtest_output_test_.cc:#: Failure
674Expected: (3) >= (a[i]), actual: 3 vs 6
675[  FAILED  ] LoggingTest.InterleavingLoggingAndAssertions (? ms)
676[----------] 1 test from LoggingTest (? ms total)
677
678[----------] Global test environment tear-down
679[==========] 4 tests from 2 test cases ran. (? ms total)
680[  PASSED  ] 0 tests.
681[  FAILED  ] 4 tests, listed below:
682[  FAILED  ] FatalFailureTest.FatalFailureInSubroutine
683[  FAILED  ] FatalFailureTest.FatalFailureInNestedSubroutine
684[  FAILED  ] FatalFailureTest.NonfatalFailureInSubroutine
685[  FAILED  ] LoggingTest.InterleavingLoggingAndAssertions
686
687 4 FAILED TESTS
688  YOU HAVE 1 DISABLED TEST
689
690Note: Google Test filter = *DISABLED_*
691[==========] Running 1 test from 1 test case.
692[----------] Global test environment set-up.
693[----------] 1 test from DisabledTestsWarningTest
694[ RUN      ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning
695[       OK ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning
696[----------] Global test environment tear-down
697[==========] 1 test from 1 test case ran.
698[  PASSED  ] 1 test.
699Note: Google Test filter = PassingTest.*
700Note: This is test shard 2 of 2.
701[==========] Running 1 test from 1 test case.
702[----------] Global test environment set-up.
703[----------] 1 test from PassingTest
704[ RUN      ] PassingTest.PassingTest2
705[       OK ] PassingTest.PassingTest2
706[----------] Global test environment tear-down
707[==========] 1 test from 1 test case ran.
708[  PASSED  ] 1 test.
709
710  YOU HAVE 1 DISABLED TEST
711
712