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