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 63 tests from 28 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[----------] [m1 test from NonfatalFailureTest 35 [0;32m[ RUN ] [mNonfatalFailureTest.EscapesStringOperands 36 gtest_output_test_.cc:#: Failure 37 Value of: actual 38 Actual: "actual \"string\"" 39 Expected: kGoldenString 40 Which is: "\"Line" 41 gtest_output_test_.cc:#: Failure 42 Value of: actual 43 Actual: "actual \"string\"" 44 Expected: golden 45 Which 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) 50 gtest_output_test_.cc:#: Failure 51 Value of: x 52 Actual: 2 53 Expected: 1 54 [0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInSubroutine 55 [0;32m[ RUN ] [mFatalFailureTest.FatalFailureInNestedSubroutine 56 (expecting a failure that x should be 1) 57 gtest_output_test_.cc:#: Failure 58 Value of: x 59 Actual: 2 60 Expected: 1 61 [0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInNestedSubroutine 62 [0;32m[ RUN ] [mFatalFailureTest.NonfatalFailureInSubroutine 63 (expecting a failure on false) 64 gtest_output_test_.cc:#: Failure 65 Value of: false 66 Actual: false 67 Expected: 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])) 72 i == 0 73 i == 1 74 gtest_output_test_.cc:#: Failure 75 Expected: (3) >= (a[i]), actual: 3 vs 9 76 i == 2 77 i == 3 78 gtest_output_test_.cc:#: Failure 79 Expected: (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) 84 gtest_output_test_.cc:#: Failure 85 Failed 86 This failure is expected, and shouldn't have a trace. 87 gtest_output_test_.cc:#: Failure 88 Failed 89 This failure is expected, and should have a trace. 90 Google Test trace: 91 gtest_output_test_.cc:#: Expected trace 92 gtest_output_test_.cc:#: Failure 93 Failed 94 This 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) 98 gtest_output_test_.cc:#: Failure 99 Value of: n 100 Actual: 1 101 Expected: 2 102 Google Test trace: 103 gtest_output_test_.cc:#: i = 1 104 gtest_output_test_.cc:#: Failure 105 Value of: n 106 Actual: 2 107 Expected: 1 108 Google Test trace: 109 gtest_output_test_.cc:#: i = 2 110 [0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInLoop 111 [0;32m[ RUN ] [mSCOPED_TRACETest.WorksInSubroutine 112 (expected to fail) 113 gtest_output_test_.cc:#: Failure 114 Value of: n 115 Actual: 1 116 Expected: 2 117 Google Test trace: 118 gtest_output_test_.cc:#: n = 1 119 gtest_output_test_.cc:#: Failure 120 Value of: n 121 Actual: 2 122 Expected: 1 123 Google Test trace: 124 gtest_output_test_.cc:#: n = 2 125 [0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInSubroutine 126 [0;32m[ RUN ] [mSCOPED_TRACETest.CanBeNested 127 (expected to fail) 128 gtest_output_test_.cc:#: Failure 129 Value of: n 130 Actual: 2 131 Expected: 1 132 Google Test trace: 133 gtest_output_test_.cc:#: n = 2 134 gtest_output_test_.cc:#: 135 [0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeNested 136 [0;32m[ RUN ] [mSCOPED_TRACETest.CanBeRepeated 137 (expected to fail) 138 gtest_output_test_.cc:#: Failure 139 Failed 140 This failure is expected, and should contain trace point A. 141 Google Test trace: 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 and B. 146 Google Test trace: 147 gtest_output_test_.cc:#: B 148 gtest_output_test_.cc:#: A 149 gtest_output_test_.cc:#: Failure 150 Failed 151 This failure is expected, and should contain trace point A, B, and C. 152 Google Test trace: 153 gtest_output_test_.cc:#: C 154 gtest_output_test_.cc:#: B 155 gtest_output_test_.cc:#: A 156 gtest_output_test_.cc:#: Failure 157 Failed 158 This failure is expected, and should contain trace point A, B, and D. 159 Google Test trace: 160 gtest_output_test_.cc:#: D 161 gtest_output_test_.cc:#: B 162 gtest_output_test_.cc:#: A 163 [0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeRepeated 164 [0;32m[ RUN ] [mSCOPED_TRACETest.WorksConcurrently 165 (expecting 6 failures) 166 gtest_output_test_.cc:#: Failure 167 Failed 168 Expected failure #1 (in thread B, only trace B alive). 169 Google Test trace: 170 gtest_output_test_.cc:#: Trace B 171 gtest_output_test_.cc:#: Failure 172 Failed 173 Expected failure #2 (in thread A, trace A & B both alive). 174 Google Test trace: 175 gtest_output_test_.cc:#: Trace A 176 gtest_output_test_.cc:#: Failure 177 Failed 178 Expected failure #3 (in thread B, trace A & B both alive). 179 Google Test trace: 180 gtest_output_test_.cc:#: Trace B 181 gtest_output_test_.cc:#: Failure 182 Failed 183 Expected failure #4 (in thread B, only trace A alive). 184 gtest_output_test_.cc:#: Failure 185 Failed 186 Expected failure #5 (in thread A, only trace A alive). 187 Google Test trace: 188 gtest_output_test_.cc:#: Trace A 189 gtest_output_test_.cc:#: Failure 190 Failed 191 Expected 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) 196 gtest_output_test_.cc:#: Failure 197 Failed 198 Expected failure #1, in the test fixture c'tor. 199 gtest_output_test_.cc:#: Failure 200 Failed 201 Expected failure #2, in SetUp(). 202 gtest_output_test_.cc:#: Failure 203 Failed 204 Expected failure #3, in the test body. 205 gtest_output_test_.cc:#: Failure 206 Failed 207 Expected failure #4, in TearDown. 208 gtest_output_test_.cc:#: Failure 209 Failed 210 Expected 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) 215 gtest_output_test_.cc:#: Failure 216 Failed 217 Expected failure #1, in the test fixture c'tor. 218 gtest_output_test_.cc:#: Failure 219 Failed 220 Expected 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) 225 gtest_output_test_.cc:#: Failure 226 Failed 227 Expected failure #1, in SetUp(). 228 gtest_output_test_.cc:#: Failure 229 Failed 230 Expected failure #2, in the test function. 231 gtest_output_test_.cc:#: Failure 232 Failed 233 Expected failure #3, in TearDown(). 234 gtest_output_test_.cc:#: Failure 235 Failed 236 Expected 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) 241 gtest_output_test_.cc:#: Failure 242 Failed 243 Expected failure #1, in SetUp(). 244 gtest_output_test_.cc:#: Failure 245 Failed 246 Expected failure #2, in TearDown(). 247 gtest_output_test_.cc:#: Failure 248 Failed 249 Expected 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 253 foo.cc:42: Failure 254 Failed 255 Expected 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 263 gtest.cc:#: Failure 264 Failed 265 All tests in the same test case must use the same test fixture 266 class. However, in test case MixedUpTestCaseTest, 267 you defined test FirstTestFromNamespaceFoo and test ThisShouldFail 268 using two different test fixture classes. This can happen if 269 the two classes are from different namespaces or translation 270 units and have the same name. You should probably rename one 271 of the classes to put the tests into different test cases. 272 [0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFail 273 [0;32m[ RUN ] [mMixedUpTestCaseTest.ThisShouldFailToo 274 gtest.cc:#: Failure 275 Failed 276 All tests in the same test case must use the same test fixture 277 class. However, in test case MixedUpTestCaseTest, 278 you defined test FirstTestFromNamespaceFoo and test ThisShouldFailToo 279 using two different test fixture classes. This can happen if 280 the two classes are from different namespaces or translation 281 units and have the same name. You should probably rename one 282 of 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 288 gtest.cc:#: Failure 289 Failed 290 All tests in the same test case must use the same test fixture 291 class. However, in test case MixedUpTestCaseWithSameTestNameTest, 292 you defined test TheSecondTestWithThisNameShouldFail and test TheSecondTestWithThisNameShouldFail 293 using two different test fixture classes. This can happen if 294 the two classes are from different namespaces or translation 295 units and have the same name. You should probably rename one 296 of 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 302 gtest.cc:#: Failure 303 Failed 304 All tests in the same test case must use the same test fixture 305 class, so mixing TEST_F and TEST in the same test case is 306 illegal. In test case TEST_F_before_TEST_in_same_test_case, 307 test DefinedUsingTEST_F is defined using TEST_F but 308 test DefinedUsingTESTAndShouldFail is defined using TEST. You probably 309 want to change the TEST to TEST_F or move it to another test 310 case. 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 316 gtest.cc:#: Failure 317 Failed 318 All tests in the same test case must use the same test fixture 319 class, so mixing TEST_F and TEST in the same test case is 320 illegal. In test case TEST_before_TEST_F_in_same_test_case, 321 test DefinedUsingTEST_FAndShouldFail is defined using TEST_F but 322 test DefinedUsingTEST is defined using TEST. You probably 323 want to change the TEST to TEST_F or move it to another test 324 case. 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) 335 gtest.cc:#: Failure 336 Expected: 1 non-fatal failure 337 Actual: 0 failures 338 [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure 339 [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures 340 (expecting a failure) 341 gtest.cc:#: Failure 342 Expected: 1 non-fatal failure 343 Actual: 2 failures 344 gtest_output_test_.cc:#: Non-fatal failure: 345 Failed 346 Expected non-fatal failure 1. 347 348 gtest_output_test_.cc:#: Non-fatal failure: 349 Failed 350 Expected non-fatal failure 2. 351 352 [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures 353 [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure 354 (expecting a failure) 355 gtest.cc:#: Failure 356 Expected: 1 non-fatal failure 357 Actual: 358 gtest_output_test_.cc:#: Fatal failure: 359 Failed 360 Expected fatal failure. 361 362 [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure 363 [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns 364 (expecting a failure) 365 gtest.cc:#: Failure 366 Expected: 1 non-fatal failure 367 Actual: 0 failures 368 [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns 369 [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenStatementThrows 370 (expecting a failure) 371 gtest.cc:#: Failure 372 Expected: 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) 384 gtest.cc:#: Failure 385 Expected: 1 fatal failure 386 Actual: 0 failures 387 [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure 388 [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures 389 (expecting a failure) 390 gtest.cc:#: Failure 391 Expected: 1 fatal failure 392 Actual: 2 failures 393 gtest_output_test_.cc:#: Fatal failure: 394 Failed 395 Expected fatal failure. 396 397 gtest_output_test_.cc:#: Fatal failure: 398 Failed 399 Expected fatal failure. 400 401 [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures 402 [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure 403 (expecting a failure) 404 gtest.cc:#: Failure 405 Expected: 1 fatal failure 406 Actual: 407 gtest_output_test_.cc:#: Non-fatal failure: 408 Failed 409 Expected non-fatal failure. 410 411 [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure 412 [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenStatementReturns 413 (expecting a failure) 414 gtest.cc:#: Failure 415 Expected: 1 fatal failure 416 Actual: 0 failures 417 [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementReturns 418 [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenStatementThrows 419 (expecting a failure) 420 gtest.cc:#: Failure 421 Expected: 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 428 gtest_output_test_.cc:#: Failure 429 Value of: TypeParam() 430 Actual: 0 431 Expected: 1 432 Expected 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 438 gtest_output_test_.cc:#: Failure 439 Value of: TypeParam() 440 Actual: '\0' 441 Expected: 1U 442 Which is: 1 443 Expected 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 449 gtest_output_test_.cc:#: Failure 450 Value of: TypeParam() 451 Actual: 0 452 Expected: 1U 453 Which is: 1 454 Expected 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) 459 gtest.cc:#: Failure 460 Expected: 1 fatal failure 461 Actual: 462 gtest_output_test_.cc:#: Success: 463 Succeeded 464 465 (expecting 1 failure) 466 gtest.cc:#: Failure 467 Expected: 1 fatal failure 468 Actual: 469 gtest_output_test_.cc:#: Non-fatal failure: 470 Failed 471 Expected non-fatal failure. 472 473 (expecting 1 failure) 474 gtest.cc:#: Failure 475 Expected: 1 fatal failure containing "Some other fatal failure expected." 476 Actual: 477 gtest_output_test_.cc:#: Fatal failure: 478 Failed 479 Expected fatal failure. 480 481 [0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailure 482 [0;32m[ RUN ] [mExpectFailureTest.ExpectNonFatalFailure 483 (expecting 1 failure) 484 gtest.cc:#: Failure 485 Expected: 1 non-fatal failure 486 Actual: 487 gtest_output_test_.cc:#: Success: 488 Succeeded 489 490 (expecting 1 failure) 491 gtest.cc:#: Failure 492 Expected: 1 non-fatal failure 493 Actual: 494 gtest_output_test_.cc:#: Fatal failure: 495 Failed 496 Expected fatal failure. 497 498 (expecting 1 failure) 499 gtest.cc:#: Failure 500 Expected: 1 non-fatal failure containing "Some other non-fatal failure." 501 Actual: 502 gtest_output_test_.cc:#: Non-fatal failure: 503 Failed 504 Expected non-fatal failure. 505 506 [0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailure 507 [0;32m[ RUN ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads 508 (expecting 1 failure) 509 gtest.cc:#: Failure 510 Expected: 1 fatal failure 511 Actual: 512 gtest_output_test_.cc:#: Success: 513 Succeeded 514 515 (expecting 1 failure) 516 gtest.cc:#: Failure 517 Expected: 1 fatal failure 518 Actual: 519 gtest_output_test_.cc:#: Non-fatal failure: 520 Failed 521 Expected non-fatal failure. 522 523 (expecting 1 failure) 524 gtest.cc:#: Failure 525 Expected: 1 fatal failure containing "Some other fatal failure expected." 526 Actual: 527 gtest_output_test_.cc:#: Fatal failure: 528 Failed 529 Expected fatal failure. 530 531 [0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads 532 [0;32m[ RUN ] [mExpectFailureTest.ExpectNonFatalFailureOnAllThreads 533 (expecting 1 failure) 534 gtest.cc:#: Failure 535 Expected: 1 non-fatal failure 536 Actual: 537 gtest_output_test_.cc:#: Success: 538 Succeeded 539 540 (expecting 1 failure) 541 gtest.cc:#: Failure 542 Expected: 1 non-fatal failure 543 Actual: 544 gtest_output_test_.cc:#: Fatal failure: 545 Failed 546 Expected fatal failure. 547 548 (expecting 1 failure) 549 gtest.cc:#: Failure 550 Expected: 1 non-fatal failure containing "Some other non-fatal failure." 551 Actual: 552 gtest_output_test_.cc:#: Non-fatal failure: 553 Failed 554 Expected 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) 560 gtest_output_test_.cc:#: Failure 561 Failed 562 Expected fatal failure. 563 gtest.cc:#: Failure 564 Expected: 1 fatal failure 565 Actual: 0 failures 566 [0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectFatalFailure 567 [0;32m[ RUN ] [mExpectFailureWithThreadsTest.ExpectNonFatalFailure 568 (expecting 2 failures) 569 gtest_output_test_.cc:#: Failure 570 Failed 571 Expected non-fatal failure. 572 gtest.cc:#: Failure 573 Expected: 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) 579 gtest_output_test_.cc:#: Failure 580 Failed 581 Expected fatal failure. 582 gtest_output_test_.cc:#: Failure 583 Failed 584 Expected 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 588 gtest_output_test_.cc:#: Failure 589 Value of: GetParam() 590 Actual: 2 591 Expected: 1 592 [0;31m[ FAILED ] [mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2 593 [0;32m[----------] [mGlobal test environment tear-down 594 BarEnvironment::TearDown() called. 595 gtest_output_test_.cc:#: Failure 596 Failed 597 Expected non-fatal failure. 598 FooEnvironment::TearDown() called. 599 gtest_output_test_.cc:#: Failure 600 Failed 601 Expected 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 648 42 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) 657 gtest_output_test_.cc:#: Failure 658 Value of: x 659 Actual: 2 660 Expected: 1 661 [ FAILED ] FatalFailureTest.FatalFailureInSubroutine (? ms) 662 [ RUN ] FatalFailureTest.FatalFailureInNestedSubroutine 663 (expecting a failure that x should be 1) 664 gtest_output_test_.cc:#: Failure 665 Value of: x 666 Actual: 2 667 Expected: 1 668 [ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms) 669 [ RUN ] FatalFailureTest.NonfatalFailureInSubroutine 670 (expecting a failure on false) 671 gtest_output_test_.cc:#: Failure 672 Value of: false 673 Actual: false 674 Expected: 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])) 681 i == 0 682 i == 1 683 gtest_output_test_.cc:#: Failure 684 Expected: (3) >= (a[i]), actual: 3 vs 9 685 i == 2 686 i == 3 687 gtest_output_test_.cc:#: Failure 688 Expected: (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 702 Note: 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. 711 Note: Google Test filter = PassingTest.* 712 Note: 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. 721