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