gtest_output_test_golden_lin.txt revision 0ddac1f3791efefb2cffdb425f0c600feb7a47e6
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 60 tests from 25 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[----------] [m3 tests from FatalFailureTest 35[0;32m[ RUN ] [mFatalFailureTest.FatalFailureInSubroutine 36(expecting a failure that x should be 1) 37gtest_output_test_.cc:#: Failure 38Value of: x 39 Actual: 2 40Expected: 1 41[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInSubroutine 42[0;32m[ RUN ] [mFatalFailureTest.FatalFailureInNestedSubroutine 43(expecting a failure that x should be 1) 44gtest_output_test_.cc:#: Failure 45Value of: x 46 Actual: 2 47Expected: 1 48[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInNestedSubroutine 49[0;32m[ RUN ] [mFatalFailureTest.NonfatalFailureInSubroutine 50(expecting a failure on false) 51gtest_output_test_.cc:#: Failure 52Value of: false 53 Actual: false 54Expected: 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])) 59i == 0 60i == 1 61gtest_output_test_.cc:#: Failure 62Expected: (3) >= (a[i]), actual: 3 vs 9 63i == 2 64i == 3 65gtest_output_test_.cc:#: Failure 66Expected: (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) 71gtest_output_test_.cc:#: Failure 72Failed 73This failure is expected, and shouldn't have a trace. 74gtest_output_test_.cc:#: Failure 75Failed 76This failure is expected, and should have a trace. 77Google Test trace: 78gtest_output_test_.cc:#: Expected trace 79gtest_output_test_.cc:#: Failure 80Failed 81This 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) 85gtest_output_test_.cc:#: Failure 86Value of: n 87 Actual: 1 88Expected: 2 89Google Test trace: 90gtest_output_test_.cc:#: i = 1 91gtest_output_test_.cc:#: Failure 92Value of: n 93 Actual: 2 94Expected: 1 95Google Test trace: 96gtest_output_test_.cc:#: i = 2 97[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInLoop 98[0;32m[ RUN ] [mSCOPED_TRACETest.WorksInSubroutine 99(expected to fail) 100gtest_output_test_.cc:#: Failure 101Value of: n 102 Actual: 1 103Expected: 2 104Google Test trace: 105gtest_output_test_.cc:#: n = 1 106gtest_output_test_.cc:#: Failure 107Value of: n 108 Actual: 2 109Expected: 1 110Google Test trace: 111gtest_output_test_.cc:#: n = 2 112[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInSubroutine 113[0;32m[ RUN ] [mSCOPED_TRACETest.CanBeNested 114(expected to fail) 115gtest_output_test_.cc:#: Failure 116Value of: n 117 Actual: 2 118Expected: 1 119Google Test trace: 120gtest_output_test_.cc:#: n = 2 121gtest_output_test_.cc:#: 122[0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeNested 123[0;32m[ RUN ] [mSCOPED_TRACETest.CanBeRepeated 124(expected to fail) 125gtest_output_test_.cc:#: Failure 126Failed 127This failure is expected, and should contain trace point A. 128Google Test trace: 129gtest_output_test_.cc:#: A 130gtest_output_test_.cc:#: Failure 131Failed 132This failure is expected, and should contain trace point A and B. 133Google Test trace: 134gtest_output_test_.cc:#: B 135gtest_output_test_.cc:#: A 136gtest_output_test_.cc:#: Failure 137Failed 138This failure is expected, and should contain trace point A, B, and C. 139Google Test trace: 140gtest_output_test_.cc:#: C 141gtest_output_test_.cc:#: B 142gtest_output_test_.cc:#: A 143gtest_output_test_.cc:#: Failure 144Failed 145This failure is expected, and should contain trace point A, B, and D. 146Google Test trace: 147gtest_output_test_.cc:#: D 148gtest_output_test_.cc:#: B 149gtest_output_test_.cc:#: A 150[0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeRepeated 151[0;32m[ RUN ] [mSCOPED_TRACETest.WorksConcurrently 152(expecting 6 failures) 153gtest_output_test_.cc:#: Failure 154Failed 155Expected failure #1 (in thread B, only trace B alive). 156Google Test trace: 157gtest_output_test_.cc:#: Trace B 158gtest_output_test_.cc:#: Failure 159Failed 160Expected failure #2 (in thread A, trace A & B both alive). 161Google Test trace: 162gtest_output_test_.cc:#: Trace A 163gtest_output_test_.cc:#: Failure 164Failed 165Expected failure #3 (in thread B, trace A & B both alive). 166Google Test trace: 167gtest_output_test_.cc:#: Trace B 168gtest_output_test_.cc:#: Failure 169Failed 170Expected failure #4 (in thread B, only trace A alive). 171gtest_output_test_.cc:#: Failure 172Failed 173Expected failure #5 (in thread A, only trace A alive). 174Google Test trace: 175gtest_output_test_.cc:#: Trace A 176gtest_output_test_.cc:#: Failure 177Failed 178Expected 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) 183gtest_output_test_.cc:#: Failure 184Failed 185Expected failure #1, in the test fixture c'tor. 186gtest_output_test_.cc:#: Failure 187Failed 188Expected failure #2, in SetUp(). 189gtest_output_test_.cc:#: Failure 190Failed 191Expected failure #3, in the test body. 192gtest_output_test_.cc:#: Failure 193Failed 194Expected failure #4, in TearDown. 195gtest_output_test_.cc:#: Failure 196Failed 197Expected 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) 202gtest_output_test_.cc:#: Failure 203Failed 204Expected failure #1, in the test fixture c'tor. 205gtest_output_test_.cc:#: Failure 206Failed 207Expected 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) 212gtest_output_test_.cc:#: Failure 213Failed 214Expected failure #1, in SetUp(). 215gtest_output_test_.cc:#: Failure 216Failed 217Expected failure #2, in the test function. 218gtest_output_test_.cc:#: Failure 219Failed 220Expected failure #3, in TearDown(). 221gtest_output_test_.cc:#: Failure 222Failed 223Expected 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) 228gtest_output_test_.cc:#: Failure 229Failed 230Expected failure #1, in SetUp(). 231gtest_output_test_.cc:#: Failure 232Failed 233Expected failure #2, in TearDown(). 234gtest_output_test_.cc:#: Failure 235Failed 236Expected 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 244gtest.cc:#: Failure 245Failed 246All tests in the same test case must use the same test fixture 247class. However, in test case MixedUpTestCaseTest, 248you defined test FirstTestFromNamespaceFoo and test ThisShouldFail 249using two different test fixture classes. This can happen if 250the two classes are from different namespaces or translation 251units and have the same name. You should probably rename one 252of the classes to put the tests into different test cases. 253[0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFail 254[0;32m[ RUN ] [mMixedUpTestCaseTest.ThisShouldFailToo 255gtest.cc:#: Failure 256Failed 257All tests in the same test case must use the same test fixture 258class. However, in test case MixedUpTestCaseTest, 259you defined test FirstTestFromNamespaceFoo and test ThisShouldFailToo 260using two different test fixture classes. This can happen if 261the two classes are from different namespaces or translation 262units and have the same name. You should probably rename one 263of 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 269gtest.cc:#: Failure 270Failed 271All tests in the same test case must use the same test fixture 272class. However, in test case MixedUpTestCaseWithSameTestNameTest, 273you defined test TheSecondTestWithThisNameShouldFail and test TheSecondTestWithThisNameShouldFail 274using two different test fixture classes. This can happen if 275the two classes are from different namespaces or translation 276units and have the same name. You should probably rename one 277of 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 283gtest.cc:#: Failure 284Failed 285All tests in the same test case must use the same test fixture 286class, so mixing TEST_F and TEST in the same test case is 287illegal. In test case TEST_F_before_TEST_in_same_test_case, 288test DefinedUsingTEST_F is defined using TEST_F but 289test DefinedUsingTESTAndShouldFail is defined using TEST. You probably 290want to change the TEST to TEST_F or move it to another test 291case. 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 297gtest.cc:#: Failure 298Failed 299All tests in the same test case must use the same test fixture 300class, so mixing TEST_F and TEST in the same test case is 301illegal. In test case TEST_before_TEST_F_in_same_test_case, 302test DefinedUsingTEST_FAndShouldFail is defined using TEST_F but 303test DefinedUsingTEST is defined using TEST. You probably 304want to change the TEST to TEST_F or move it to another test 305case. 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) 316gtest.cc:#: Failure 317Expected: 1 non-fatal failure 318 Actual: 0 failures 319[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure 320[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures 321(expecting a failure) 322gtest.cc:#: Failure 323Expected: 1 non-fatal failure 324 Actual: 2 failures 325gtest_output_test_.cc:#: Non-fatal failure: 326Failed 327Expected non-fatal failure 1. 328 329gtest_output_test_.cc:#: Non-fatal failure: 330Failed 331Expected non-fatal failure 2. 332 333[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures 334[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure 335(expecting a failure) 336gtest.cc:#: Failure 337Expected: 1 non-fatal failure 338 Actual: 339gtest_output_test_.cc:#: Fatal failure: 340Failed 341Expected fatal failure. 342 343[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure 344[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns 345(expecting a failure) 346gtest.cc:#: Failure 347Expected: 1 non-fatal failure 348 Actual: 0 failures 349[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns 350[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenStatementThrows 351(expecting a failure) 352gtest.cc:#: Failure 353Expected: 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) 365gtest.cc:#: Failure 366Expected: 1 fatal failure 367 Actual: 0 failures 368[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure 369[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures 370(expecting a failure) 371gtest.cc:#: Failure 372Expected: 1 fatal failure 373 Actual: 2 failures 374gtest_output_test_.cc:#: Fatal failure: 375Failed 376Expected fatal failure. 377 378gtest_output_test_.cc:#: Fatal failure: 379Failed 380Expected fatal failure. 381 382[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures 383[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure 384(expecting a failure) 385gtest.cc:#: Failure 386Expected: 1 fatal failure 387 Actual: 388gtest_output_test_.cc:#: Non-fatal failure: 389Failed 390Expected non-fatal failure. 391 392[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure 393[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenStatementReturns 394(expecting a failure) 395gtest.cc:#: Failure 396Expected: 1 fatal failure 397 Actual: 0 failures 398[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementReturns 399[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenStatementThrows 400(expecting a failure) 401gtest.cc:#: Failure 402Expected: 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 409gtest_output_test_.cc:#: Failure 410Value of: TypeParam() 411 Actual: 0 412Expected: 1 413Expected 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 419gtest_output_test_.cc:#: Failure 420Value of: TypeParam() 421 Actual: \0 422Expected: 1U 423Which is: 1 424Expected 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 430gtest_output_test_.cc:#: Failure 431Value of: TypeParam() 432 Actual: 0 433Expected: 1U 434Which is: 1 435Expected 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) 440gtest.cc:#: Failure 441Expected: 1 fatal failure 442 Actual: 443gtest_output_test_.cc:#: Success: 444Succeeded 445 446(expecting 1 failure) 447gtest.cc:#: Failure 448Expected: 1 fatal failure 449 Actual: 450gtest_output_test_.cc:#: Non-fatal failure: 451Failed 452Expected non-fatal failure. 453 454(expecting 1 failure) 455gtest.cc:#: Failure 456Expected: 1 fatal failure containing "Some other fatal failure expected." 457 Actual: 458gtest_output_test_.cc:#: Fatal failure: 459Failed 460Expected fatal failure. 461 462[0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailure 463[0;32m[ RUN ] [mExpectFailureTest.ExpectNonFatalFailure 464(expecting 1 failure) 465gtest.cc:#: Failure 466Expected: 1 non-fatal failure 467 Actual: 468gtest_output_test_.cc:#: Success: 469Succeeded 470 471(expecting 1 failure) 472gtest.cc:#: Failure 473Expected: 1 non-fatal failure 474 Actual: 475gtest_output_test_.cc:#: Fatal failure: 476Failed 477Expected fatal failure. 478 479(expecting 1 failure) 480gtest.cc:#: Failure 481Expected: 1 non-fatal failure containing "Some other non-fatal failure." 482 Actual: 483gtest_output_test_.cc:#: Non-fatal failure: 484Failed 485Expected non-fatal failure. 486 487[0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailure 488[0;32m[ RUN ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads 489(expecting 1 failure) 490gtest.cc:#: Failure 491Expected: 1 fatal failure 492 Actual: 493gtest_output_test_.cc:#: Success: 494Succeeded 495 496(expecting 1 failure) 497gtest.cc:#: Failure 498Expected: 1 fatal failure 499 Actual: 500gtest_output_test_.cc:#: Non-fatal failure: 501Failed 502Expected non-fatal failure. 503 504(expecting 1 failure) 505gtest.cc:#: Failure 506Expected: 1 fatal failure containing "Some other fatal failure expected." 507 Actual: 508gtest_output_test_.cc:#: Fatal failure: 509Failed 510Expected fatal failure. 511 512[0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads 513[0;32m[ RUN ] [mExpectFailureTest.ExpectNonFatalFailureOnAllThreads 514(expecting 1 failure) 515gtest.cc:#: Failure 516Expected: 1 non-fatal failure 517 Actual: 518gtest_output_test_.cc:#: Success: 519Succeeded 520 521(expecting 1 failure) 522gtest.cc:#: Failure 523Expected: 1 non-fatal failure 524 Actual: 525gtest_output_test_.cc:#: Fatal failure: 526Failed 527Expected fatal failure. 528 529(expecting 1 failure) 530gtest.cc:#: Failure 531Expected: 1 non-fatal failure containing "Some other non-fatal failure." 532 Actual: 533gtest_output_test_.cc:#: Non-fatal failure: 534Failed 535Expected 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) 541gtest_output_test_.cc:#: Failure 542Failed 543Expected fatal failure. 544gtest.cc:#: Failure 545Expected: 1 fatal failure 546 Actual: 0 failures 547[0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectFatalFailure 548[0;32m[ RUN ] [mExpectFailureWithThreadsTest.ExpectNonFatalFailure 549(expecting 2 failures) 550gtest_output_test_.cc:#: Failure 551Failed 552Expected non-fatal failure. 553gtest.cc:#: Failure 554Expected: 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) 560gtest_output_test_.cc:#: Failure 561Failed 562Expected fatal failure. 563gtest_output_test_.cc:#: Failure 564Failed 565Expected non-fatal failure. 566[0;31m[ FAILED ] [mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread 567[0;32m[----------] [mGlobal test environment tear-down 568BarEnvironment::TearDown() called. 569gtest_output_test_.cc:#: Failure 570Failed 571Expected non-fatal failure. 572FooEnvironment::TearDown() called. 573gtest_output_test_.cc:#: Failure 574Failed 575Expected 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 61939 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) 628gtest_output_test_.cc:#: Failure 629Value of: x 630 Actual: 2 631Expected: 1 632[ FAILED ] FatalFailureTest.FatalFailureInSubroutine (? ms) 633[ RUN ] FatalFailureTest.FatalFailureInNestedSubroutine 634(expecting a failure that x should be 1) 635gtest_output_test_.cc:#: Failure 636Value of: x 637 Actual: 2 638Expected: 1 639[ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms) 640[ RUN ] FatalFailureTest.NonfatalFailureInSubroutine 641(expecting a failure on false) 642gtest_output_test_.cc:#: Failure 643Value of: false 644 Actual: false 645Expected: 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])) 652i == 0 653i == 1 654gtest_output_test_.cc:#: Failure 655Expected: (3) >= (a[i]), actual: 3 vs 9 656i == 2 657i == 3 658gtest_output_test_.cc:#: Failure 659Expected: (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 675Note: 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. 684Note: Google Test filter = PassingTest.* 685Note: 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