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