source: gtest-1.7.0/test/gtest_output_test_golden_lin.txt@ 12761

Last change on this file since 12761 was 12746, checked in by hock@…, 11 years ago

integrated the Google Testing Framework (gtest)

and wrote an Hello World test, to ensure the framework is working..

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