gtest_output_test_golden_win.txt 23 KB
Newer Older
shiqian's avatar
shiqian committed
1
2
The non-test part of the code is expected to have 2 failures.

3
gtest_output_test_.cc:#: error: Value of: false
shiqian's avatar
shiqian committed
4
5
  Actual: false
Expected: true
6
gtest_output_test_.cc:#: error: Value of: 3
shiqian's avatar
shiqian committed
7
Expected: 2
8
[==========] Running 58 tests from 25 test cases.
shiqian's avatar
shiqian committed
9
10
11
[----------] Global test environment set-up.
FooEnvironment::SetUp() called.
BarEnvironment::SetUp() called.
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[----------] 1 test from ADeathTest
[ RUN      ] ADeathTest.ShouldRunFirst
[       OK ] ADeathTest.ShouldRunFirst
[----------] 1 test from ATypedDeathTest/0, where TypeParam = int
[ RUN      ] ATypedDeathTest/0.ShouldRunFirst
[       OK ] ATypedDeathTest/0.ShouldRunFirst
[----------] 1 test from ATypedDeathTest/1, where TypeParam = double
[ RUN      ] ATypedDeathTest/1.ShouldRunFirst
[       OK ] ATypedDeathTest/1.ShouldRunFirst
[----------] 1 test from My/ATypeParamDeathTest/0, where TypeParam = int
[ RUN      ] My/ATypeParamDeathTest/0.ShouldRunFirst
[       OK ] My/ATypeParamDeathTest/0.ShouldRunFirst
[----------] 1 test from My/ATypeParamDeathTest/1, where TypeParam = double
[ RUN      ] My/ATypeParamDeathTest/1.ShouldRunFirst
[       OK ] My/ATypeParamDeathTest/1.ShouldRunFirst
27
28
29
30
31
[----------] 2 tests from PassingTest
[ RUN      ] PassingTest.PassingTest1
[       OK ] PassingTest.PassingTest1
[ RUN      ] PassingTest.PassingTest2
[       OK ] PassingTest.PassingTest2
shiqian's avatar
shiqian committed
32
33
34
[----------] 3 tests from FatalFailureTest
[ RUN      ] FatalFailureTest.FatalFailureInSubroutine
(expecting a failure that x should be 1)
35
gtest_output_test_.cc:#: error: Value of: x
shiqian's avatar
shiqian committed
36
37
38
39
40
  Actual: 2
Expected: 1
[  FAILED  ] FatalFailureTest.FatalFailureInSubroutine
[ RUN      ] FatalFailureTest.FatalFailureInNestedSubroutine
(expecting a failure that x should be 1)
41
gtest_output_test_.cc:#: error: Value of: x
shiqian's avatar
shiqian committed
42
43
44
45
46
  Actual: 2
Expected: 1
[  FAILED  ] FatalFailureTest.FatalFailureInNestedSubroutine
[ RUN      ] FatalFailureTest.NonfatalFailureInSubroutine
(expecting a failure on false)
47
gtest_output_test_.cc:#: error: Value of: false
shiqian's avatar
shiqian committed
48
49
50
51
52
53
54
55
  Actual: false
Expected: true
[  FAILED  ] FatalFailureTest.NonfatalFailureInSubroutine
[----------] 1 test from LoggingTest
[ RUN      ] LoggingTest.InterleavingLoggingAndAssertions
(expecting 2 failures on (3) >= (a[i]))
i == 0
i == 1
56
gtest_output_test_.cc:#: error: Expected: (3) >= (a[i]), actual: 3 vs 9
shiqian's avatar
shiqian committed
57
58
i == 2
i == 3
59
gtest_output_test_.cc:#: error: Expected: (3) >= (a[i]), actual: 3 vs 6
shiqian's avatar
shiqian committed
60
61
62
63
[  FAILED  ] LoggingTest.InterleavingLoggingAndAssertions
[----------] 5 tests from SCOPED_TRACETest
[ RUN      ] SCOPED_TRACETest.ObeysScopes
(expected to fail)
64
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
65
This failure is expected, and shouldn't have a trace.
66
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
67
This failure is expected, and should have a trace.
68
Google Test trace:
shiqian's avatar
shiqian committed
69
gtest_output_test_.cc:#: Expected trace
70
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
71
72
73
74
This failure is expected, and shouldn't have a trace.
[  FAILED  ] SCOPED_TRACETest.ObeysScopes
[ RUN      ] SCOPED_TRACETest.WorksInLoop
(expected to fail)
75
gtest_output_test_.cc:#: error: Value of: n
shiqian's avatar
shiqian committed
76
77
  Actual: 1
Expected: 2
78
Google Test trace:
shiqian's avatar
shiqian committed
79
gtest_output_test_.cc:#: i = 1
80
gtest_output_test_.cc:#: error: Value of: n
shiqian's avatar
shiqian committed
81
82
  Actual: 2
Expected: 1
83
Google Test trace:
shiqian's avatar
shiqian committed
84
85
86
87
gtest_output_test_.cc:#: i = 2
[  FAILED  ] SCOPED_TRACETest.WorksInLoop
[ RUN      ] SCOPED_TRACETest.WorksInSubroutine
(expected to fail)
88
gtest_output_test_.cc:#: error: Value of: n
shiqian's avatar
shiqian committed
89
90
  Actual: 1
Expected: 2
91
Google Test trace:
shiqian's avatar
shiqian committed
92
gtest_output_test_.cc:#: n = 1
93
gtest_output_test_.cc:#: error: Value of: n
shiqian's avatar
shiqian committed
94
95
  Actual: 2
Expected: 1
96
Google Test trace:
shiqian's avatar
shiqian committed
97
98
99
100
gtest_output_test_.cc:#: n = 2
[  FAILED  ] SCOPED_TRACETest.WorksInSubroutine
[ RUN      ] SCOPED_TRACETest.CanBeNested
(expected to fail)
101
gtest_output_test_.cc:#: error: Value of: n
shiqian's avatar
shiqian committed
102
103
  Actual: 2
Expected: 1
104
Google Test trace:
shiqian's avatar
shiqian committed
105
106
107
108
109
gtest_output_test_.cc:#: n = 2
gtest_output_test_.cc:#: 
[  FAILED  ] SCOPED_TRACETest.CanBeNested
[ RUN      ] SCOPED_TRACETest.CanBeRepeated
(expected to fail)
110
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
111
This failure is expected, and should contain trace point A.
112
Google Test trace:
shiqian's avatar
shiqian committed
113
gtest_output_test_.cc:#: A
114
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
115
This failure is expected, and should contain trace point A and B.
116
Google Test trace:
shiqian's avatar
shiqian committed
117
118
gtest_output_test_.cc:#: B
gtest_output_test_.cc:#: A
119
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
120
This failure is expected, and should contain trace point A, B, and C.
121
Google Test trace:
shiqian's avatar
shiqian committed
122
123
124
gtest_output_test_.cc:#: C
gtest_output_test_.cc:#: B
gtest_output_test_.cc:#: A
125
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
126
This failure is expected, and should contain trace point A, B, and D.
127
Google Test trace:
shiqian's avatar
shiqian committed
128
129
130
131
132
133
134
gtest_output_test_.cc:#: D
gtest_output_test_.cc:#: B
gtest_output_test_.cc:#: A
[  FAILED  ] SCOPED_TRACETest.CanBeRepeated
[----------] 1 test from NonFatalFailureInFixtureConstructorTest
[ RUN      ] NonFatalFailureInFixtureConstructorTest.FailureInConstructor
(expecting 5 failures)
135
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
136
Expected failure #1, in the test fixture c'tor.
137
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
138
Expected failure #2, in SetUp().
139
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
140
Expected failure #3, in the test body.
141
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
142
Expected failure #4, in TearDown.
143
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
144
145
146
147
148
Expected failure #5, in the test fixture d'tor.
[  FAILED  ] NonFatalFailureInFixtureConstructorTest.FailureInConstructor
[----------] 1 test from FatalFailureInFixtureConstructorTest
[ RUN      ] FatalFailureInFixtureConstructorTest.FailureInConstructor
(expecting 2 failures)
149
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
150
Expected failure #1, in the test fixture c'tor.
151
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
152
153
154
155
156
Expected failure #2, in the test fixture d'tor.
[  FAILED  ] FatalFailureInFixtureConstructorTest.FailureInConstructor
[----------] 1 test from NonFatalFailureInSetUpTest
[ RUN      ] NonFatalFailureInSetUpTest.FailureInSetUp
(expecting 4 failures)
157
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
158
Expected failure #1, in SetUp().
159
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
160
Expected failure #2, in the test function.
161
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
162
Expected failure #3, in TearDown().
163
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
164
165
166
167
168
Expected failure #4, in the test fixture d'tor.
[  FAILED  ] NonFatalFailureInSetUpTest.FailureInSetUp
[----------] 1 test from FatalFailureInSetUpTest
[ RUN      ] FatalFailureInSetUpTest.FailureInSetUp
(expecting 3 failures)
169
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
170
Expected failure #1, in SetUp().
171
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
172
Expected failure #2, in TearDown().
173
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
174
175
Expected failure #3, in the test fixture d'tor.
[  FAILED  ] FatalFailureInSetUpTest.FailureInSetUp
176
177
178
179
180
[----------] 1 test from AddFailureAtTest
[ RUN      ] AddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
foo.cc(42): error: Failed
Expected failure in foo.cc
[  FAILED  ] AddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
shiqian's avatar
shiqian committed
181
182
183
184
185
186
[----------] 4 tests from MixedUpTestCaseTest
[ RUN      ] MixedUpTestCaseTest.FirstTestFromNamespaceFoo
[       OK ] MixedUpTestCaseTest.FirstTestFromNamespaceFoo
[ RUN      ] MixedUpTestCaseTest.SecondTestFromNamespaceFoo
[       OK ] MixedUpTestCaseTest.SecondTestFromNamespaceFoo
[ RUN      ] MixedUpTestCaseTest.ThisShouldFail
187
gtest.cc:#: error: Failed
shiqian's avatar
shiqian committed
188
189
190
191
192
193
194
195
196
All tests in the same test case must use the same test fixture
class.  However, in test case MixedUpTestCaseTest,
you defined test FirstTestFromNamespaceFoo and test ThisShouldFail
using two different test fixture classes.  This can happen if
the two classes are from different namespaces or translation
units and have the same name.  You should probably rename one
of the classes to put the tests into different test cases.
[  FAILED  ] MixedUpTestCaseTest.ThisShouldFail
[ RUN      ] MixedUpTestCaseTest.ThisShouldFailToo
197
gtest.cc:#: error: Failed
shiqian's avatar
shiqian committed
198
199
200
201
202
203
204
205
206
207
208
209
All tests in the same test case must use the same test fixture
class.  However, in test case MixedUpTestCaseTest,
you defined test FirstTestFromNamespaceFoo and test ThisShouldFailToo
using two different test fixture classes.  This can happen if
the two classes are from different namespaces or translation
units and have the same name.  You should probably rename one
of the classes to put the tests into different test cases.
[  FAILED  ] MixedUpTestCaseTest.ThisShouldFailToo
[----------] 2 tests from MixedUpTestCaseWithSameTestNameTest
[ RUN      ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
[       OK ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
[ RUN      ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
210
gtest.cc:#: error: Failed
shiqian's avatar
shiqian committed
211
212
213
214
215
216
217
218
219
220
221
222
All tests in the same test case must use the same test fixture
class.  However, in test case MixedUpTestCaseWithSameTestNameTest,
you defined test TheSecondTestWithThisNameShouldFail and test TheSecondTestWithThisNameShouldFail
using two different test fixture classes.  This can happen if
the two classes are from different namespaces or translation
units and have the same name.  You should probably rename one
of the classes to put the tests into different test cases.
[  FAILED  ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
[----------] 2 tests from TEST_F_before_TEST_in_same_test_case
[ RUN      ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F
[       OK ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F
[ RUN      ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
223
gtest.cc:#: error: Failed
shiqian's avatar
shiqian committed
224
225
226
227
228
229
230
231
232
233
234
235
All tests in the same test case must use the same test fixture
class, so mixing TEST_F and TEST in the same test case is
illegal.  In test case TEST_F_before_TEST_in_same_test_case,
test DefinedUsingTEST_F is defined using TEST_F but
test DefinedUsingTESTAndShouldFail is defined using TEST.  You probably
want to change the TEST to TEST_F or move it to another test
case.
[  FAILED  ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
[----------] 2 tests from TEST_before_TEST_F_in_same_test_case
[ RUN      ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST
[       OK ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST
[ RUN      ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
236
gtest.cc:#: error: Failed
shiqian's avatar
shiqian committed
237
238
239
240
241
242
243
244
All tests in the same test case must use the same test fixture
class, so mixing TEST_F and TEST in the same test case is
illegal.  In test case TEST_before_TEST_F_in_same_test_case,
test DefinedUsingTEST_FAndShouldFail is defined using TEST_F but
test DefinedUsingTEST is defined using TEST.  You probably
want to change the TEST to TEST_F or move it to another test
case.
[  FAILED  ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
245
[----------] 8 tests from ExpectNonfatalFailureTest
shiqian's avatar
shiqian committed
246
247
248
249
250
251
252
253
[ RUN      ] ExpectNonfatalFailureTest.CanReferenceGlobalVariables
[       OK ] ExpectNonfatalFailureTest.CanReferenceGlobalVariables
[ RUN      ] ExpectNonfatalFailureTest.CanReferenceLocalVariables
[       OK ] ExpectNonfatalFailureTest.CanReferenceLocalVariables
[ RUN      ] ExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure
[       OK ] ExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure
[ RUN      ] ExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
(expecting a failure)
254
gtest.cc:#: error: Expected: 1 non-fatal failure
shiqian's avatar
shiqian committed
255
256
257
258
  Actual: 0 failures
[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
[ RUN      ] ExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
(expecting a failure)
259
gtest.cc:#: error: Expected: 1 non-fatal failure
shiqian's avatar
shiqian committed
260
261
262
263
264
265
266
267
268
269
270
271
  Actual: 2 failures
gtest_output_test_.cc:#: Non-fatal failure:
Failed
Expected non-fatal failure 1.

gtest_output_test_.cc:#: Non-fatal failure:
Failed
Expected non-fatal failure 2.

[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
[ RUN      ] ExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
(expecting a failure)
272
gtest.cc:#: error: Expected: 1 non-fatal failure
shiqian's avatar
shiqian committed
273
274
275
276
277
278
279
280
  Actual:
gtest_output_test_.cc:#: Fatal failure:
Failed
Expected fatal failure.

[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
[ RUN      ] ExpectNonfatalFailureTest.FailsWhenStatementReturns
(expecting a failure)
281
gtest.cc:#: error: Expected: 1 non-fatal failure
shiqian's avatar
shiqian committed
282
283
  Actual: 0 failures
[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenStatementReturns
284
285
286
287
288
289
[ RUN      ] ExpectNonfatalFailureTest.FailsWhenStatementThrows
(expecting a failure)
gtest.cc:#: error: Expected: 1 non-fatal failure
  Actual: 0 failures
[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenStatementThrows
[----------] 8 tests from ExpectFatalFailureTest
shiqian's avatar
shiqian committed
290
291
292
293
294
295
296
297
[ RUN      ] ExpectFatalFailureTest.CanReferenceGlobalVariables
[       OK ] ExpectFatalFailureTest.CanReferenceGlobalVariables
[ RUN      ] ExpectFatalFailureTest.CanReferenceLocalStaticVariables
[       OK ] ExpectFatalFailureTest.CanReferenceLocalStaticVariables
[ RUN      ] ExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure
[       OK ] ExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure
[ RUN      ] ExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
(expecting a failure)
298
gtest.cc:#: error: Expected: 1 fatal failure
shiqian's avatar
shiqian committed
299
300
301
302
  Actual: 0 failures
[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
[ RUN      ] ExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
(expecting a failure)
303
gtest.cc:#: error: Expected: 1 fatal failure
shiqian's avatar
shiqian committed
304
305
306
307
308
309
310
311
312
313
314
315
  Actual: 2 failures
gtest_output_test_.cc:#: Fatal failure:
Failed
Expected fatal failure.

gtest_output_test_.cc:#: Fatal failure:
Failed
Expected fatal failure.

[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
[ RUN      ] ExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
(expecting a failure)
316
gtest.cc:#: error: Expected: 1 fatal failure
shiqian's avatar
shiqian committed
317
318
319
320
321
322
323
324
  Actual:
gtest_output_test_.cc:#: Non-fatal failure:
Failed
Expected non-fatal failure.

[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
[ RUN      ] ExpectFatalFailureTest.FailsWhenStatementReturns
(expecting a failure)
325
gtest.cc:#: error: Expected: 1 fatal failure
shiqian's avatar
shiqian committed
326
327
  Actual: 0 failures
[  FAILED  ] ExpectFatalFailureTest.FailsWhenStatementReturns
328
329
330
331
332
[ RUN      ] ExpectFatalFailureTest.FailsWhenStatementThrows
(expecting a failure)
gtest.cc:#: error: Expected: 1 fatal failure
  Actual: 0 failures
[  FAILED  ] ExpectFatalFailureTest.FailsWhenStatementThrows
333
334
335
336
337
338
339
340
[----------] 2 tests from TypedTest/0, where TypeParam = int
[ RUN      ] TypedTest/0.Success
[       OK ] TypedTest/0.Success
[ RUN      ] TypedTest/0.Failure
gtest_output_test_.cc:#: error: Value of: TypeParam()
  Actual: 0
Expected: 1
Expected failure
341
[  FAILED  ] TypedTest/0.Failure, where TypeParam = int
342
343
344
345
346
[----------] 2 tests from Unsigned/TypedTestP/0, where TypeParam = unsigned char
[ RUN      ] Unsigned/TypedTestP/0.Success
[       OK ] Unsigned/TypedTestP/0.Success
[ RUN      ] Unsigned/TypedTestP/0.Failure
gtest_output_test_.cc:#: error: Value of: TypeParam()
347
  Actual: '\0'
348
349
Expected: 1U
Which is: 1
350
Expected failure
351
[  FAILED  ] Unsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
352
353
354
355
356
357
[----------] 2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned int
[ RUN      ] Unsigned/TypedTestP/1.Success
[       OK ] Unsigned/TypedTestP/1.Success
[ RUN      ] Unsigned/TypedTestP/1.Failure
gtest_output_test_.cc:#: error: Value of: TypeParam()
  Actual: 0
358
359
Expected: 1U
Which is: 1
360
Expected failure
361
[  FAILED  ] Unsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
shiqian's avatar
shiqian committed
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
[----------] 4 tests from ExpectFailureTest
[ RUN      ] ExpectFailureTest.ExpectFatalFailure
(expecting 1 failure)
gtest.cc:#: error: Expected: 1 fatal failure
  Actual:
gtest_output_test_.cc:#: Success:
Succeeded

(expecting 1 failure)
gtest.cc:#: error: Expected: 1 fatal failure
  Actual:
gtest_output_test_.cc:#: Non-fatal failure:
Failed
Expected non-fatal failure.

(expecting 1 failure)
gtest.cc:#: error: Expected: 1 fatal failure containing "Some other fatal failure expected."
  Actual:
gtest_output_test_.cc:#: Fatal failure:
Failed
Expected fatal failure.

[  FAILED  ] ExpectFailureTest.ExpectFatalFailure
[ RUN      ] ExpectFailureTest.ExpectNonFatalFailure
(expecting 1 failure)
gtest.cc:#: error: Expected: 1 non-fatal failure
  Actual:
gtest_output_test_.cc:#: Success:
Succeeded

(expecting 1 failure)
gtest.cc:#: error: Expected: 1 non-fatal failure
  Actual:
gtest_output_test_.cc:#: Fatal failure:
Failed
Expected fatal failure.

(expecting 1 failure)
gtest.cc:#: error: Expected: 1 non-fatal failure containing "Some other non-fatal failure."
  Actual:
gtest_output_test_.cc:#: Non-fatal failure:
Failed
Expected non-fatal failure.

[  FAILED  ] ExpectFailureTest.ExpectNonFatalFailure
[ RUN      ] ExpectFailureTest.ExpectFatalFailureOnAllThreads
(expecting 1 failure)
gtest.cc:#: error: Expected: 1 fatal failure
  Actual:
gtest_output_test_.cc:#: Success:
Succeeded

(expecting 1 failure)
gtest.cc:#: error: Expected: 1 fatal failure
  Actual:
gtest_output_test_.cc:#: Non-fatal failure:
Failed
Expected non-fatal failure.

(expecting 1 failure)
gtest.cc:#: error: Expected: 1 fatal failure containing "Some other fatal failure expected."
  Actual:
gtest_output_test_.cc:#: Fatal failure:
Failed
Expected fatal failure.

[  FAILED  ] ExpectFailureTest.ExpectFatalFailureOnAllThreads
[ RUN      ] ExpectFailureTest.ExpectNonFatalFailureOnAllThreads
(expecting 1 failure)
gtest.cc:#: error: Expected: 1 non-fatal failure
  Actual:
gtest_output_test_.cc:#: Success:
Succeeded

(expecting 1 failure)
gtest.cc:#: error: Expected: 1 non-fatal failure
  Actual:
gtest_output_test_.cc:#: Fatal failure:
Failed
Expected fatal failure.

(expecting 1 failure)
gtest.cc:#: error: Expected: 1 non-fatal failure containing "Some other non-fatal failure."
  Actual:
gtest_output_test_.cc:#: Non-fatal failure:
Failed
Expected non-fatal failure.

[  FAILED  ] ExpectFailureTest.ExpectNonFatalFailureOnAllThreads
451
452
453
454
455
456
[----------] 1 test from PrintingFailingParams/FailingParamTest
[ RUN      ] PrintingFailingParams/FailingParamTest.Fails/0
gtest_output_test_.cc:#: error: Value of: GetParam()
  Actual: 2
Expected: 1
[  FAILED  ] PrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
shiqian's avatar
shiqian committed
457
458
[----------] Global test environment tear-down
BarEnvironment::TearDown() called.
459
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
460
461
Expected non-fatal failure.
FooEnvironment::TearDown() called.
462
gtest_output_test_.cc:#: error: Failed
shiqian's avatar
shiqian committed
463
Expected fatal failure.
464
[==========] 58 tests from 25 test cases ran.
465
[  PASSED  ] 21 tests.
466
[  FAILED  ] 37 tests, listed below:
shiqian's avatar
shiqian committed
467
468
469
470
471
472
473
474
475
476
477
478
479
[  FAILED  ] FatalFailureTest.FatalFailureInSubroutine
[  FAILED  ] FatalFailureTest.FatalFailureInNestedSubroutine
[  FAILED  ] FatalFailureTest.NonfatalFailureInSubroutine
[  FAILED  ] LoggingTest.InterleavingLoggingAndAssertions
[  FAILED  ] SCOPED_TRACETest.ObeysScopes
[  FAILED  ] SCOPED_TRACETest.WorksInLoop
[  FAILED  ] SCOPED_TRACETest.WorksInSubroutine
[  FAILED  ] SCOPED_TRACETest.CanBeNested
[  FAILED  ] SCOPED_TRACETest.CanBeRepeated
[  FAILED  ] NonFatalFailureInFixtureConstructorTest.FailureInConstructor
[  FAILED  ] FatalFailureInFixtureConstructorTest.FailureInConstructor
[  FAILED  ] NonFatalFailureInSetUpTest.FailureInSetUp
[  FAILED  ] FatalFailureInSetUpTest.FailureInSetUp
480
[  FAILED  ] AddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
shiqian's avatar
shiqian committed
481
482
483
484
485
486
487
488
489
[  FAILED  ] MixedUpTestCaseTest.ThisShouldFail
[  FAILED  ] MixedUpTestCaseTest.ThisShouldFailToo
[  FAILED  ] MixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
[  FAILED  ] TEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
[  FAILED  ] TEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenStatementReturns
490
[  FAILED  ] ExpectNonfatalFailureTest.FailsWhenStatementThrows
shiqian's avatar
shiqian committed
491
492
493
494
[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
[  FAILED  ] ExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
[  FAILED  ] ExpectFatalFailureTest.FailsWhenStatementReturns
495
[  FAILED  ] ExpectFatalFailureTest.FailsWhenStatementThrows
496
497
498
[  FAILED  ] TypedTest/0.Failure, where TypeParam = int
[  FAILED  ] Unsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
[  FAILED  ] Unsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
shiqian's avatar
shiqian committed
499
500
501
502
[  FAILED  ] ExpectFailureTest.ExpectFatalFailure
[  FAILED  ] ExpectFailureTest.ExpectNonFatalFailure
[  FAILED  ] ExpectFailureTest.ExpectFatalFailureOnAllThreads
[  FAILED  ] ExpectFailureTest.ExpectNonFatalFailureOnAllThreads
503
[  FAILED  ] PrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
shiqian's avatar
shiqian committed
504

505
37 FAILED TESTS
506
507
  YOU HAVE 1 DISABLED TEST

508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
Note: Google Test filter = FatalFailureTest.*:LoggingTest.*
[==========] Running 4 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 3 tests from FatalFailureTest
[ RUN      ] FatalFailureTest.FatalFailureInSubroutine
(expecting a failure that x should be 1)
gtest_output_test_.cc:#: error: Value of: x
  Actual: 2
Expected: 1
[  FAILED  ] FatalFailureTest.FatalFailureInSubroutine (? ms)
[ RUN      ] FatalFailureTest.FatalFailureInNestedSubroutine
(expecting a failure that x should be 1)
gtest_output_test_.cc:#: error: Value of: x
  Actual: 2
Expected: 1
[  FAILED  ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms)
[ RUN      ] FatalFailureTest.NonfatalFailureInSubroutine
(expecting a failure on false)
gtest_output_test_.cc:#: error: Value of: false
  Actual: false
Expected: true
[  FAILED  ] FatalFailureTest.NonfatalFailureInSubroutine (? ms)
[----------] 3 tests from FatalFailureTest (? ms total)

[----------] 1 test from LoggingTest
[ RUN      ] LoggingTest.InterleavingLoggingAndAssertions
(expecting 2 failures on (3) >= (a[i]))
i == 0
i == 1
gtest_output_test_.cc:#: error: Expected: (3) >= (a[i]), actual: 3 vs 9
i == 2
i == 3
gtest_output_test_.cc:#: error: Expected: (3) >= (a[i]), actual: 3 vs 6
[  FAILED  ] LoggingTest.InterleavingLoggingAndAssertions (? ms)
[----------] 1 test from LoggingTest (? ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 2 test cases ran. (? ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 4 tests, listed below:
[  FAILED  ] FatalFailureTest.FatalFailureInSubroutine
[  FAILED  ] FatalFailureTest.FatalFailureInNestedSubroutine
[  FAILED  ] FatalFailureTest.NonfatalFailureInSubroutine
[  FAILED  ] LoggingTest.InterleavingLoggingAndAssertions

 4 FAILED TESTS
554
555
556
557
558
559
560
561
562
563
564
  YOU HAVE 1 DISABLED TEST

Note: Google Test filter = *DISABLED_*
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from DisabledTestsWarningTest
[ RUN      ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning
[       OK ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran.
[  PASSED  ] 1 test.
565
566
567
568
569
570
571
572
573
574
575
576
577
Note: Google Test filter = PassingTest.*
Note: This is test shard 1 of 2.
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from PassingTest
[ RUN      ] PassingTest.PassingTest2
[       OK ] PassingTest.PassingTest2
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran.
[  PASSED  ] 1 test.

  YOU HAVE 1 DISABLED TEST