1The non-test part of the code is expected to have 2 failures. 2 3googletest-output-test_.cc:#: Failure 4Value of: false 5 Actual: false 6Expected: true 7Stack trace: (omitted) 8 9googletest-output-test_.cc:#: Failure 10Expected equality of these values: 11 2 12 3 13Stack trace: (omitted) 14 15[0;32m[==========] [mRunning 76 tests from 34 test cases. 16[0;32m[----------] [mGlobal test environment set-up. 17FooEnvironment::SetUp() called. 18BarEnvironment::SetUp() called. 19[0;32m[----------] [m1 test from ADeathTest 20[0;32m[ RUN ] [mADeathTest.ShouldRunFirst 21[0;32m[ OK ] [mADeathTest.ShouldRunFirst 22[0;32m[----------] [m1 test from ATypedDeathTest/0, where TypeParam = int 23[0;32m[ RUN ] [mATypedDeathTest/0.ShouldRunFirst 24[0;32m[ OK ] [mATypedDeathTest/0.ShouldRunFirst 25[0;32m[----------] [m1 test from ATypedDeathTest/1, where TypeParam = double 26[0;32m[ RUN ] [mATypedDeathTest/1.ShouldRunFirst 27[0;32m[ OK ] [mATypedDeathTest/1.ShouldRunFirst 28[0;32m[----------] [m1 test from My/ATypeParamDeathTest/0, where TypeParam = int 29[0;32m[ RUN ] [mMy/ATypeParamDeathTest/0.ShouldRunFirst 30[0;32m[ OK ] [mMy/ATypeParamDeathTest/0.ShouldRunFirst 31[0;32m[----------] [m1 test from My/ATypeParamDeathTest/1, where TypeParam = double 32[0;32m[ RUN ] [mMy/ATypeParamDeathTest/1.ShouldRunFirst 33[0;32m[ OK ] [mMy/ATypeParamDeathTest/1.ShouldRunFirst 34[0;32m[----------] [m2 tests from PassingTest 35[0;32m[ RUN ] [mPassingTest.PassingTest1 36[0;32m[ OK ] [mPassingTest.PassingTest1 37[0;32m[ RUN ] [mPassingTest.PassingTest2 38[0;32m[ OK ] [mPassingTest.PassingTest2 39[0;32m[----------] [m2 tests from NonfatalFailureTest 40[0;32m[ RUN ] [mNonfatalFailureTest.EscapesStringOperands 41googletest-output-test_.cc:#: Failure 42Expected equality of these values: 43 kGoldenString 44 Which is: "\"Line" 45 actual 46 Which is: "actual \"string\"" 47Stack trace: (omitted) 48 49googletest-output-test_.cc:#: Failure 50Expected equality of these values: 51 golden 52 Which is: "\"Line" 53 actual 54 Which is: "actual \"string\"" 55Stack trace: (omitted) 56 57[0;31m[ FAILED ] [mNonfatalFailureTest.EscapesStringOperands 58[0;32m[ RUN ] [mNonfatalFailureTest.DiffForLongStrings 59googletest-output-test_.cc:#: Failure 60Expected equality of these values: 61 golden_str 62 Which is: "\"Line\0 1\"\nLine 2" 63 "Line 2" 64With diff: 65@@ -1,2 @@ 66-\"Line\0 1\" 67 Line 2 68 69Stack trace: (omitted) 70 71[0;31m[ FAILED ] [mNonfatalFailureTest.DiffForLongStrings 72[0;32m[----------] [m3 tests from FatalFailureTest 73[0;32m[ RUN ] [mFatalFailureTest.FatalFailureInSubroutine 74(expecting a failure that x should be 1) 75googletest-output-test_.cc:#: Failure 76Expected equality of these values: 77 1 78 x 79 Which is: 2 80Stack trace: (omitted) 81 82[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInSubroutine 83[0;32m[ RUN ] [mFatalFailureTest.FatalFailureInNestedSubroutine 84(expecting a failure that x should be 1) 85googletest-output-test_.cc:#: Failure 86Expected equality of these values: 87 1 88 x 89 Which is: 2 90Stack trace: (omitted) 91 92[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInNestedSubroutine 93[0;32m[ RUN ] [mFatalFailureTest.NonfatalFailureInSubroutine 94(expecting a failure on false) 95googletest-output-test_.cc:#: Failure 96Value of: false 97 Actual: false 98Expected: true 99Stack trace: (omitted) 100 101[0;31m[ FAILED ] [mFatalFailureTest.NonfatalFailureInSubroutine 102[0;32m[----------] [m1 test from LoggingTest 103[0;32m[ RUN ] [mLoggingTest.InterleavingLoggingAndAssertions 104(expecting 2 failures on (3) >= (a[i])) 105i == 0 106i == 1 107googletest-output-test_.cc:#: Failure 108Expected: (3) >= (a[i]), actual: 3 vs 9 109Stack trace: (omitted) 110 111i == 2 112i == 3 113googletest-output-test_.cc:#: Failure 114Expected: (3) >= (a[i]), actual: 3 vs 6 115Stack trace: (omitted) 116 117[0;31m[ FAILED ] [mLoggingTest.InterleavingLoggingAndAssertions 118[0;32m[----------] [m7 tests from SCOPED_TRACETest 119[0;32m[ RUN ] [mSCOPED_TRACETest.AcceptedValues 120googletest-output-test_.cc:#: Failure 121Failed 122Just checking that all these values work fine. 123Google Test trace: 124googletest-output-test_.cc:#: (null) 125googletest-output-test_.cc:#: 1337 126googletest-output-test_.cc:#: std::string 127googletest-output-test_.cc:#: literal string 128Stack trace: (omitted) 129 130[0;31m[ FAILED ] [mSCOPED_TRACETest.AcceptedValues 131[0;32m[ RUN ] [mSCOPED_TRACETest.ObeysScopes 132(expected to fail) 133googletest-output-test_.cc:#: Failure 134Failed 135This failure is expected, and shouldn't have a trace. 136Stack trace: (omitted) 137 138googletest-output-test_.cc:#: Failure 139Failed 140This failure is expected, and should have a trace. 141Google Test trace: 142googletest-output-test_.cc:#: Expected trace 143Stack trace: (omitted) 144 145googletest-output-test_.cc:#: Failure 146Failed 147This failure is expected, and shouldn't have a trace. 148Stack trace: (omitted) 149 150[0;31m[ FAILED ] [mSCOPED_TRACETest.ObeysScopes 151[0;32m[ RUN ] [mSCOPED_TRACETest.WorksInLoop 152(expected to fail) 153googletest-output-test_.cc:#: Failure 154Expected equality of these values: 155 2 156 n 157 Which is: 1 158Google Test trace: 159googletest-output-test_.cc:#: i = 1 160Stack trace: (omitted) 161 162googletest-output-test_.cc:#: Failure 163Expected equality of these values: 164 1 165 n 166 Which is: 2 167Google Test trace: 168googletest-output-test_.cc:#: i = 2 169Stack trace: (omitted) 170 171[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInLoop 172[0;32m[ RUN ] [mSCOPED_TRACETest.WorksInSubroutine 173(expected to fail) 174googletest-output-test_.cc:#: Failure 175Expected equality of these values: 176 2 177 n 178 Which is: 1 179Google Test trace: 180googletest-output-test_.cc:#: n = 1 181Stack trace: (omitted) 182 183googletest-output-test_.cc:#: Failure 184Expected equality of these values: 185 1 186 n 187 Which is: 2 188Google Test trace: 189googletest-output-test_.cc:#: n = 2 190Stack trace: (omitted) 191 192[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInSubroutine 193[0;32m[ RUN ] [mSCOPED_TRACETest.CanBeNested 194(expected to fail) 195googletest-output-test_.cc:#: Failure 196Expected equality of these values: 197 1 198 n 199 Which is: 2 200Google Test trace: 201googletest-output-test_.cc:#: n = 2 202googletest-output-test_.cc:#: 203Stack trace: (omitted) 204 205[0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeNested 206[0;32m[ RUN ] [mSCOPED_TRACETest.CanBeRepeated 207(expected to fail) 208googletest-output-test_.cc:#: Failure 209Failed 210This failure is expected, and should contain trace point A. 211Google Test trace: 212googletest-output-test_.cc:#: A 213Stack trace: (omitted) 214 215googletest-output-test_.cc:#: Failure 216Failed 217This failure is expected, and should contain trace point A and B. 218Google Test trace: 219googletest-output-test_.cc:#: B 220googletest-output-test_.cc:#: A 221Stack trace: (omitted) 222 223googletest-output-test_.cc:#: Failure 224Failed 225This failure is expected, and should contain trace point A, B, and C. 226Google Test trace: 227googletest-output-test_.cc:#: C 228googletest-output-test_.cc:#: B 229googletest-output-test_.cc:#: A 230Stack trace: (omitted) 231 232googletest-output-test_.cc:#: Failure 233Failed 234This failure is expected, and should contain trace point A, B, and D. 235Google Test trace: 236googletest-output-test_.cc:#: D 237googletest-output-test_.cc:#: B 238googletest-output-test_.cc:#: A 239Stack trace: (omitted) 240 241[0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeRepeated 242[0;32m[ RUN ] [mSCOPED_TRACETest.WorksConcurrently 243(expecting 6 failures) 244googletest-output-test_.cc:#: Failure 245Failed 246Expected failure #1 (in thread B, only trace B alive). 247Google Test trace: 248googletest-output-test_.cc:#: Trace B 249Stack trace: (omitted) 250 251googletest-output-test_.cc:#: Failure 252Failed 253Expected failure #2 (in thread A, trace A & B both alive). 254Google Test trace: 255googletest-output-test_.cc:#: Trace A 256Stack trace: (omitted) 257 258googletest-output-test_.cc:#: Failure 259Failed 260Expected failure #3 (in thread B, trace A & B both alive). 261Google Test trace: 262googletest-output-test_.cc:#: Trace B 263Stack trace: (omitted) 264 265googletest-output-test_.cc:#: Failure 266Failed 267Expected failure #4 (in thread B, only trace A alive). 268Stack trace: (omitted) 269 270googletest-output-test_.cc:#: Failure 271Failed 272Expected failure #5 (in thread A, only trace A alive). 273Google Test trace: 274googletest-output-test_.cc:#: Trace A 275Stack trace: (omitted) 276 277googletest-output-test_.cc:#: Failure 278Failed 279Expected failure #6 (in thread A, no trace alive). 280Stack trace: (omitted) 281 282[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksConcurrently 283[0;32m[----------] [m1 test from ScopedTraceTest 284[0;32m[ RUN ] [mScopedTraceTest.WithExplicitFileAndLine 285googletest-output-test_.cc:#: Failure 286Failed 287Check that the trace is attached to a particular location. 288Google Test trace: 289explicit_file.cc:123: expected trace message 290Stack trace: (omitted) 291 292[0;31m[ FAILED ] [mScopedTraceTest.WithExplicitFileAndLine 293[0;32m[----------] [m1 test from NonFatalFailureInFixtureConstructorTest 294[0;32m[ RUN ] [mNonFatalFailureInFixtureConstructorTest.FailureInConstructor 295(expecting 5 failures) 296googletest-output-test_.cc:#: Failure 297Failed 298Expected failure #1, in the test fixture c'tor. 299Stack trace: (omitted) 300 301googletest-output-test_.cc:#: Failure 302Failed 303Expected failure #2, in SetUp(). 304Stack trace: (omitted) 305 306googletest-output-test_.cc:#: Failure 307Failed 308Expected failure #3, in the test body. 309Stack trace: (omitted) 310 311googletest-output-test_.cc:#: Failure 312Failed 313Expected failure #4, in TearDown. 314Stack trace: (omitted) 315 316googletest-output-test_.cc:#: Failure 317Failed 318Expected failure #5, in the test fixture d'tor. 319Stack trace: (omitted) 320 321[0;31m[ FAILED ] [mNonFatalFailureInFixtureConstructorTest.FailureInConstructor 322[0;32m[----------] [m1 test from FatalFailureInFixtureConstructorTest 323[0;32m[ RUN ] [mFatalFailureInFixtureConstructorTest.FailureInConstructor 324(expecting 2 failures) 325googletest-output-test_.cc:#: Failure 326Failed 327Expected failure #1, in the test fixture c'tor. 328Stack trace: (omitted) 329 330googletest-output-test_.cc:#: Failure 331Failed 332Expected failure #2, in the test fixture d'tor. 333Stack trace: (omitted) 334 335[0;31m[ FAILED ] [mFatalFailureInFixtureConstructorTest.FailureInConstructor 336[0;32m[----------] [m1 test from NonFatalFailureInSetUpTest 337[0;32m[ RUN ] [mNonFatalFailureInSetUpTest.FailureInSetUp 338(expecting 4 failures) 339googletest-output-test_.cc:#: Failure 340Failed 341Expected failure #1, in SetUp(). 342Stack trace: (omitted) 343 344googletest-output-test_.cc:#: Failure 345Failed 346Expected failure #2, in the test function. 347Stack trace: (omitted) 348 349googletest-output-test_.cc:#: Failure 350Failed 351Expected failure #3, in TearDown(). 352Stack trace: (omitted) 353 354googletest-output-test_.cc:#: Failure 355Failed 356Expected failure #4, in the test fixture d'tor. 357Stack trace: (omitted) 358 359[0;31m[ FAILED ] [mNonFatalFailureInSetUpTest.FailureInSetUp 360[0;32m[----------] [m1 test from FatalFailureInSetUpTest 361[0;32m[ RUN ] [mFatalFailureInSetUpTest.FailureInSetUp 362(expecting 3 failures) 363googletest-output-test_.cc:#: Failure 364Failed 365Expected failure #1, in SetUp(). 366Stack trace: (omitted) 367 368googletest-output-test_.cc:#: Failure 369Failed 370Expected failure #2, in TearDown(). 371Stack trace: (omitted) 372 373googletest-output-test_.cc:#: Failure 374Failed 375Expected failure #3, in the test fixture d'tor. 376Stack trace: (omitted) 377 378[0;31m[ FAILED ] [mFatalFailureInSetUpTest.FailureInSetUp 379[0;32m[----------] [m1 test from AddFailureAtTest 380[0;32m[ RUN ] [mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber 381foo.cc:42: Failure 382Failed 383Expected failure in foo.cc 384Stack trace: (omitted) 385 386[0;31m[ FAILED ] [mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber 387[0;32m[----------] [m4 tests from MixedUpTestCaseTest 388[0;32m[ RUN ] [mMixedUpTestCaseTest.FirstTestFromNamespaceFoo 389[0;32m[ OK ] [mMixedUpTestCaseTest.FirstTestFromNamespaceFoo 390[0;32m[ RUN ] [mMixedUpTestCaseTest.SecondTestFromNamespaceFoo 391[0;32m[ OK ] [mMixedUpTestCaseTest.SecondTestFromNamespaceFoo 392[0;32m[ RUN ] [mMixedUpTestCaseTest.ThisShouldFail 393gtest.cc:#: Failure 394Failed 395All tests in the same test case must use the same test fixture 396class. However, in test case MixedUpTestCaseTest, 397you defined test FirstTestFromNamespaceFoo and test ThisShouldFail 398using two different test fixture classes. This can happen if 399the two classes are from different namespaces or translation 400units and have the same name. You should probably rename one 401of the classes to put the tests into different test cases. 402Stack trace: (omitted) 403 404[0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFail 405[0;32m[ RUN ] [mMixedUpTestCaseTest.ThisShouldFailToo 406gtest.cc:#: Failure 407Failed 408All tests in the same test case must use the same test fixture 409class. However, in test case MixedUpTestCaseTest, 410you defined test FirstTestFromNamespaceFoo and test ThisShouldFailToo 411using two different test fixture classes. This can happen if 412the two classes are from different namespaces or translation 413units and have the same name. You should probably rename one 414of the classes to put the tests into different test cases. 415Stack trace: (omitted) 416 417[0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFailToo 418[0;32m[----------] [m2 tests from MixedUpTestCaseWithSameTestNameTest 419[0;32m[ RUN ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail 420[0;32m[ OK ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail 421[0;32m[ RUN ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail 422gtest.cc:#: Failure 423Failed 424All tests in the same test case must use the same test fixture 425class. However, in test case MixedUpTestCaseWithSameTestNameTest, 426you defined test TheSecondTestWithThisNameShouldFail and test TheSecondTestWithThisNameShouldFail 427using two different test fixture classes. This can happen if 428the two classes are from different namespaces or translation 429units and have the same name. You should probably rename one 430of the classes to put the tests into different test cases. 431Stack trace: (omitted) 432 433[0;31m[ FAILED ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail 434[0;32m[----------] [m2 tests from TEST_F_before_TEST_in_same_test_case 435[0;32m[ RUN ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F 436[0;32m[ OK ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F 437[0;32m[ RUN ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail 438gtest.cc:#: Failure 439Failed 440All tests in the same test case must use the same test fixture 441class, so mixing TEST_F and TEST in the same test case is 442illegal. In test case TEST_F_before_TEST_in_same_test_case, 443test DefinedUsingTEST_F is defined using TEST_F but 444test DefinedUsingTESTAndShouldFail is defined using TEST. You probably 445want to change the TEST to TEST_F or move it to another test 446case. 447Stack trace: (omitted) 448 449[0;31m[ FAILED ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail 450[0;32m[----------] [m2 tests from TEST_before_TEST_F_in_same_test_case 451[0;32m[ RUN ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST 452[0;32m[ OK ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST 453[0;32m[ RUN ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail 454gtest.cc:#: Failure 455Failed 456All tests in the same test case must use the same test fixture 457class, so mixing TEST_F and TEST in the same test case is 458illegal. In test case TEST_before_TEST_F_in_same_test_case, 459test DefinedUsingTEST_FAndShouldFail is defined using TEST_F but 460test DefinedUsingTEST is defined using TEST. You probably 461want to change the TEST to TEST_F or move it to another test 462case. 463Stack trace: (omitted) 464 465[0;31m[ FAILED ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail 466[0;32m[----------] [m8 tests from ExpectNonfatalFailureTest 467[0;32m[ RUN ] [mExpectNonfatalFailureTest.CanReferenceGlobalVariables 468[0;32m[ OK ] [mExpectNonfatalFailureTest.CanReferenceGlobalVariables 469[0;32m[ RUN ] [mExpectNonfatalFailureTest.CanReferenceLocalVariables 470[0;32m[ OK ] [mExpectNonfatalFailureTest.CanReferenceLocalVariables 471[0;32m[ RUN ] [mExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure 472[0;32m[ OK ] [mExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure 473[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure 474(expecting a failure) 475gtest.cc:#: Failure 476Expected: 1 non-fatal failure 477 Actual: 0 failures 478Stack trace: (omitted) 479 480[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure 481[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures 482(expecting a failure) 483gtest.cc:#: Failure 484Expected: 1 non-fatal failure 485 Actual: 2 failures 486googletest-output-test_.cc:#: Non-fatal failure: 487Failed 488Expected non-fatal failure 1. 489Stack trace: (omitted) 490 491 492googletest-output-test_.cc:#: Non-fatal failure: 493Failed 494Expected non-fatal failure 2. 495Stack trace: (omitted) 496 497 498Stack trace: (omitted) 499 500[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures 501[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure 502(expecting a failure) 503gtest.cc:#: Failure 504Expected: 1 non-fatal failure 505 Actual: 506googletest-output-test_.cc:#: Fatal failure: 507Failed 508Expected fatal failure. 509Stack trace: (omitted) 510 511 512Stack trace: (omitted) 513 514[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure 515[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns 516(expecting a failure) 517gtest.cc:#: Failure 518Expected: 1 non-fatal failure 519 Actual: 0 failures 520Stack trace: (omitted) 521 522[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns 523[0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenStatementThrows 524(expecting a failure) 525gtest.cc:#: Failure 526Expected: 1 non-fatal failure 527 Actual: 0 failures 528Stack trace: (omitted) 529 530[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementThrows 531[0;32m[----------] [m8 tests from ExpectFatalFailureTest 532[0;32m[ RUN ] [mExpectFatalFailureTest.CanReferenceGlobalVariables 533[0;32m[ OK ] [mExpectFatalFailureTest.CanReferenceGlobalVariables 534[0;32m[ RUN ] [mExpectFatalFailureTest.CanReferenceLocalStaticVariables 535[0;32m[ OK ] [mExpectFatalFailureTest.CanReferenceLocalStaticVariables 536[0;32m[ RUN ] [mExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure 537[0;32m[ OK ] [mExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure 538[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure 539(expecting a failure) 540gtest.cc:#: Failure 541Expected: 1 fatal failure 542 Actual: 0 failures 543Stack trace: (omitted) 544 545[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure 546[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures 547(expecting a failure) 548gtest.cc:#: Failure 549Expected: 1 fatal failure 550 Actual: 2 failures 551googletest-output-test_.cc:#: Fatal failure: 552Failed 553Expected fatal failure. 554Stack trace: (omitted) 555 556 557googletest-output-test_.cc:#: Fatal failure: 558Failed 559Expected fatal failure. 560Stack trace: (omitted) 561 562 563Stack trace: (omitted) 564 565[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures 566[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure 567(expecting a failure) 568gtest.cc:#: Failure 569Expected: 1 fatal failure 570 Actual: 571googletest-output-test_.cc:#: Non-fatal failure: 572Failed 573Expected non-fatal failure. 574Stack trace: (omitted) 575 576 577Stack trace: (omitted) 578 579[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure 580[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenStatementReturns 581(expecting a failure) 582gtest.cc:#: Failure 583Expected: 1 fatal failure 584 Actual: 0 failures 585Stack trace: (omitted) 586 587[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementReturns 588[0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenStatementThrows 589(expecting a failure) 590gtest.cc:#: Failure 591Expected: 1 fatal failure 592 Actual: 0 failures 593Stack trace: (omitted) 594 595[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementThrows 596[0;32m[----------] [m2 tests from TypedTest/0, where TypeParam = int 597[0;32m[ RUN ] [mTypedTest/0.Success 598[0;32m[ OK ] [mTypedTest/0.Success 599[0;32m[ RUN ] [mTypedTest/0.Failure 600googletest-output-test_.cc:#: Failure 601Expected equality of these values: 602 1 603 TypeParam() 604 Which is: 0 605Expected failure 606Stack trace: (omitted) 607 608[0;31m[ FAILED ] [mTypedTest/0.Failure, where TypeParam = int 609[0;32m[----------] [m2 tests from TypedTestWithNames/char0, where TypeParam = char 610[0;32m[ RUN ] [mTypedTestWithNames/char0.Success 611[0;32m[ OK ] [mTypedTestWithNames/char0.Success 612[0;32m[ RUN ] [mTypedTestWithNames/char0.Failure 613googletest-output-test_.cc:#: Failure 614Failed 615Stack trace: (omitted) 616 617[0;31m[ FAILED ] [mTypedTestWithNames/char0.Failure, where TypeParam = char 618[0;32m[----------] [m2 tests from TypedTestWithNames/int1, where TypeParam = int 619[0;32m[ RUN ] [mTypedTestWithNames/int1.Success 620[0;32m[ OK ] [mTypedTestWithNames/int1.Success 621[0;32m[ RUN ] [mTypedTestWithNames/int1.Failure 622googletest-output-test_.cc:#: Failure 623Failed 624Stack trace: (omitted) 625 626[0;31m[ FAILED ] [mTypedTestWithNames/int1.Failure, where TypeParam = int 627[0;32m[----------] [m2 tests from Unsigned/TypedTestP/0, where TypeParam = unsigned char 628[0;32m[ RUN ] [mUnsigned/TypedTestP/0.Success 629[0;32m[ OK ] [mUnsigned/TypedTestP/0.Success 630[0;32m[ RUN ] [mUnsigned/TypedTestP/0.Failure 631googletest-output-test_.cc:#: Failure 632Expected equality of these values: 633 1U 634 Which is: 1 635 TypeParam() 636 Which is: '\0' 637Expected failure 638Stack trace: (omitted) 639 640[0;31m[ FAILED ] [mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char 641[0;32m[----------] [m2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned int 642[0;32m[ RUN ] [mUnsigned/TypedTestP/1.Success 643[0;32m[ OK ] [mUnsigned/TypedTestP/1.Success 644[0;32m[ RUN ] [mUnsigned/TypedTestP/1.Failure 645googletest-output-test_.cc:#: Failure 646Expected equality of these values: 647 1U 648 Which is: 1 649 TypeParam() 650 Which is: 0 651Expected failure 652Stack trace: (omitted) 653 654[0;31m[ FAILED ] [mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned int 655[0;32m[----------] [m2 tests from UnsignedCustomName/TypedTestP/unsignedChar0, where TypeParam = unsigned char 656[0;32m[ RUN ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Success 657[0;32m[ OK ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Success 658[0;32m[ RUN ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Failure 659googletest-output-test_.cc:#: Failure 660Expected equality of these values: 661 1U 662 Which is: 1 663 TypeParam() 664 Which is: '\0' 665Expected failure 666Stack trace: (omitted) 667 668[0;31m[ FAILED ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Failure, where TypeParam = unsigned char 669[0;32m[----------] [m2 tests from UnsignedCustomName/TypedTestP/unsignedInt1, where TypeParam = unsigned int 670[0;32m[ RUN ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Success 671[0;32m[ OK ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Success 672[0;32m[ RUN ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Failure 673googletest-output-test_.cc:#: Failure 674Expected equality of these values: 675 1U 676 Which is: 1 677 TypeParam() 678 Which is: 0 679Expected failure 680Stack trace: (omitted) 681 682[0;31m[ FAILED ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Failure, where TypeParam = unsigned int 683[0;32m[----------] [m4 tests from ExpectFailureTest 684[0;32m[ RUN ] [mExpectFailureTest.ExpectFatalFailure 685(expecting 1 failure) 686gtest.cc:#: Failure 687Expected: 1 fatal failure 688 Actual: 689googletest-output-test_.cc:#: Success: 690Succeeded 691Stack trace: (omitted) 692 693 694Stack trace: (omitted) 695 696(expecting 1 failure) 697gtest.cc:#: Failure 698Expected: 1 fatal failure 699 Actual: 700googletest-output-test_.cc:#: Non-fatal failure: 701Failed 702Expected non-fatal failure. 703Stack trace: (omitted) 704 705 706Stack trace: (omitted) 707 708(expecting 1 failure) 709gtest.cc:#: Failure 710Expected: 1 fatal failure containing "Some other fatal failure expected." 711 Actual: 712googletest-output-test_.cc:#: Fatal failure: 713Failed 714Expected fatal failure. 715Stack trace: (omitted) 716 717 718Stack trace: (omitted) 719 720[0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailure 721[0;32m[ RUN ] [mExpectFailureTest.ExpectNonFatalFailure 722(expecting 1 failure) 723gtest.cc:#: Failure 724Expected: 1 non-fatal failure 725 Actual: 726googletest-output-test_.cc:#: Success: 727Succeeded 728Stack trace: (omitted) 729 730 731Stack trace: (omitted) 732 733(expecting 1 failure) 734gtest.cc:#: Failure 735Expected: 1 non-fatal failure 736 Actual: 737googletest-output-test_.cc:#: Fatal failure: 738Failed 739Expected fatal failure. 740Stack trace: (omitted) 741 742 743Stack trace: (omitted) 744 745(expecting 1 failure) 746gtest.cc:#: Failure 747Expected: 1 non-fatal failure containing "Some other non-fatal failure." 748 Actual: 749googletest-output-test_.cc:#: Non-fatal failure: 750Failed 751Expected non-fatal failure. 752Stack trace: (omitted) 753 754 755Stack trace: (omitted) 756 757[0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailure 758[0;32m[ RUN ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads 759(expecting 1 failure) 760gtest.cc:#: Failure 761Expected: 1 fatal failure 762 Actual: 763googletest-output-test_.cc:#: Success: 764Succeeded 765Stack trace: (omitted) 766 767 768Stack trace: (omitted) 769 770(expecting 1 failure) 771gtest.cc:#: Failure 772Expected: 1 fatal failure 773 Actual: 774googletest-output-test_.cc:#: Non-fatal failure: 775Failed 776Expected non-fatal failure. 777Stack trace: (omitted) 778 779 780Stack trace: (omitted) 781 782(expecting 1 failure) 783gtest.cc:#: Failure 784Expected: 1 fatal failure containing "Some other fatal failure expected." 785 Actual: 786googletest-output-test_.cc:#: Fatal failure: 787Failed 788Expected fatal failure. 789Stack trace: (omitted) 790 791 792Stack trace: (omitted) 793 794[0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads 795[0;32m[ RUN ] [mExpectFailureTest.ExpectNonFatalFailureOnAllThreads 796(expecting 1 failure) 797gtest.cc:#: Failure 798Expected: 1 non-fatal failure 799 Actual: 800googletest-output-test_.cc:#: Success: 801Succeeded 802Stack trace: (omitted) 803 804 805Stack trace: (omitted) 806 807(expecting 1 failure) 808gtest.cc:#: Failure 809Expected: 1 non-fatal failure 810 Actual: 811googletest-output-test_.cc:#: Fatal failure: 812Failed 813Expected fatal failure. 814Stack trace: (omitted) 815 816 817Stack trace: (omitted) 818 819(expecting 1 failure) 820gtest.cc:#: Failure 821Expected: 1 non-fatal failure containing "Some other non-fatal failure." 822 Actual: 823googletest-output-test_.cc:#: Non-fatal failure: 824Failed 825Expected non-fatal failure. 826Stack trace: (omitted) 827 828 829Stack trace: (omitted) 830 831[0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailureOnAllThreads 832[0;32m[----------] [m2 tests from ExpectFailureWithThreadsTest 833[0;32m[ RUN ] [mExpectFailureWithThreadsTest.ExpectFatalFailure 834(expecting 2 failures) 835googletest-output-test_.cc:#: Failure 836Failed 837Expected fatal failure. 838Stack trace: (omitted) 839 840gtest.cc:#: Failure 841Expected: 1 fatal failure 842 Actual: 0 failures 843Stack trace: (omitted) 844 845[0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectFatalFailure 846[0;32m[ RUN ] [mExpectFailureWithThreadsTest.ExpectNonFatalFailure 847(expecting 2 failures) 848googletest-output-test_.cc:#: Failure 849Failed 850Expected non-fatal failure. 851Stack trace: (omitted) 852 853gtest.cc:#: Failure 854Expected: 1 non-fatal failure 855 Actual: 0 failures 856Stack trace: (omitted) 857 858[0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectNonFatalFailure 859[0;32m[----------] [m1 test from ScopedFakeTestPartResultReporterTest 860[0;32m[ RUN ] [mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread 861(expecting 2 failures) 862googletest-output-test_.cc:#: Failure 863Failed 864Expected fatal failure. 865Stack trace: (omitted) 866 867googletest-output-test_.cc:#: Failure 868Failed 869Expected non-fatal failure. 870Stack trace: (omitted) 871 872[0;31m[ FAILED ] [mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread 873[0;32m[----------] [m1 test from PrintingFailingParams/FailingParamTest 874[0;32m[ RUN ] [mPrintingFailingParams/FailingParamTest.Fails/0 875googletest-output-test_.cc:#: Failure 876Expected equality of these values: 877 1 878 GetParam() 879 Which is: 2 880Stack trace: (omitted) 881 882[0;31m[ FAILED ] [mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2 883[0;32m[----------] [m2 tests from PrintingStrings/ParamTest 884[0;32m[ RUN ] [mPrintingStrings/ParamTest.Success/a 885[0;32m[ OK ] [mPrintingStrings/ParamTest.Success/a 886[0;32m[ RUN ] [mPrintingStrings/ParamTest.Failure/a 887googletest-output-test_.cc:#: Failure 888Expected equality of these values: 889 "b" 890 GetParam() 891 Which is: "a" 892Expected failure 893Stack trace: (omitted) 894 895[0;31m[ FAILED ] [mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a" 896[0;32m[----------] [mGlobal test environment tear-down 897BarEnvironment::TearDown() called. 898googletest-output-test_.cc:#: Failure 899Failed 900Expected non-fatal failure. 901Stack trace: (omitted) 902 903FooEnvironment::TearDown() called. 904googletest-output-test_.cc:#: Failure 905Failed 906Expected fatal failure. 907Stack trace: (omitted) 908 909[0;32m[==========] [m76 tests from 34 test cases ran. 910[0;32m[ PASSED ] [m26 tests. 911[0;31m[ FAILED ] [m50 tests, listed below: 912[0;31m[ FAILED ] [mNonfatalFailureTest.EscapesStringOperands 913[0;31m[ FAILED ] [mNonfatalFailureTest.DiffForLongStrings 914[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInSubroutine 915[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInNestedSubroutine 916[0;31m[ FAILED ] [mFatalFailureTest.NonfatalFailureInSubroutine 917[0;31m[ FAILED ] [mLoggingTest.InterleavingLoggingAndAssertions 918[0;31m[ FAILED ] [mSCOPED_TRACETest.AcceptedValues 919[0;31m[ FAILED ] [mSCOPED_TRACETest.ObeysScopes 920[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInLoop 921[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInSubroutine 922[0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeNested 923[0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeRepeated 924[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksConcurrently 925[0;31m[ FAILED ] [mScopedTraceTest.WithExplicitFileAndLine 926[0;31m[ FAILED ] [mNonFatalFailureInFixtureConstructorTest.FailureInConstructor 927[0;31m[ FAILED ] [mFatalFailureInFixtureConstructorTest.FailureInConstructor 928[0;31m[ FAILED ] [mNonFatalFailureInSetUpTest.FailureInSetUp 929[0;31m[ FAILED ] [mFatalFailureInSetUpTest.FailureInSetUp 930[0;31m[ FAILED ] [mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber 931[0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFail 932[0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFailToo 933[0;31m[ FAILED ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail 934[0;31m[ FAILED ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail 935[0;31m[ FAILED ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail 936[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure 937[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures 938[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure 939[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns 940[0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementThrows 941[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure 942[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures 943[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure 944[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementReturns 945[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementThrows 946[0;31m[ FAILED ] [mTypedTest/0.Failure, where TypeParam = int 947[0;31m[ FAILED ] [mTypedTestWithNames/char0.Failure, where TypeParam = char 948[0;31m[ FAILED ] [mTypedTestWithNames/int1.Failure, where TypeParam = int 949[0;31m[ FAILED ] [mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char 950[0;31m[ FAILED ] [mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned int 951[0;31m[ FAILED ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Failure, where TypeParam = unsigned char 952[0;31m[ FAILED ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Failure, where TypeParam = unsigned int 953[0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailure 954[0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailure 955[0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads 956[0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailureOnAllThreads 957[0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectFatalFailure 958[0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectNonFatalFailure 959[0;31m[ FAILED ] [mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread 960[0;31m[ FAILED ] [mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2 961[0;31m[ FAILED ] [mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a" 962 96350 FAILED TESTS 964[0;33m YOU HAVE 1 DISABLED TEST 965 966[mNote: Google Test filter = FatalFailureTest.*:LoggingTest.* 967[==========] Running 4 tests from 2 test cases. 968[----------] Global test environment set-up. 969[----------] 3 tests from FatalFailureTest 970[ RUN ] FatalFailureTest.FatalFailureInSubroutine 971(expecting a failure that x should be 1) 972googletest-output-test_.cc:#: Failure 973Expected equality of these values: 974 1 975 x 976 Which is: 2 977Stack trace: (omitted) 978 979[ FAILED ] FatalFailureTest.FatalFailureInSubroutine (? ms) 980[ RUN ] FatalFailureTest.FatalFailureInNestedSubroutine 981(expecting a failure that x should be 1) 982googletest-output-test_.cc:#: Failure 983Expected equality of these values: 984 1 985 x 986 Which is: 2 987Stack trace: (omitted) 988 989[ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms) 990[ RUN ] FatalFailureTest.NonfatalFailureInSubroutine 991(expecting a failure on false) 992googletest-output-test_.cc:#: Failure 993Value of: false 994 Actual: false 995Expected: true 996Stack trace: (omitted) 997 998[ FAILED ] FatalFailureTest.NonfatalFailureInSubroutine (? ms) 999[----------] 3 tests from FatalFailureTest (? ms total) 1000 1001[----------] 1 test from LoggingTest 1002[ RUN ] LoggingTest.InterleavingLoggingAndAssertions 1003(expecting 2 failures on (3) >= (a[i])) 1004i == 0 1005i == 1 1006googletest-output-test_.cc:#: Failure 1007Expected: (3) >= (a[i]), actual: 3 vs 9 1008Stack trace: (omitted) 1009 1010i == 2 1011i == 3 1012googletest-output-test_.cc:#: Failure 1013Expected: (3) >= (a[i]), actual: 3 vs 6 1014Stack trace: (omitted) 1015 1016[ FAILED ] LoggingTest.InterleavingLoggingAndAssertions (? ms) 1017[----------] 1 test from LoggingTest (? ms total) 1018 1019[----------] Global test environment tear-down 1020[==========] 4 tests from 2 test cases ran. (? ms total) 1021[ PASSED ] 0 tests. 1022[ FAILED ] 4 tests, listed below: 1023[ FAILED ] FatalFailureTest.FatalFailureInSubroutine 1024[ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine 1025[ FAILED ] FatalFailureTest.NonfatalFailureInSubroutine 1026[ FAILED ] LoggingTest.InterleavingLoggingAndAssertions 1027 1028 4 FAILED TESTS 1029Note: Google Test filter = *DISABLED_* 1030[==========] Running 1 test from 1 test case. 1031[----------] Global test environment set-up. 1032[----------] 1 test from DisabledTestsWarningTest 1033[ RUN ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning 1034[ OK ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning 1035[----------] Global test environment tear-down 1036[==========] 1 test from 1 test case ran. 1037[ PASSED ] 1 test. 1038Note: Google Test filter = PassingTest.* 1039Note: This is test shard 2 of 2. 1040[==========] Running 1 test from 1 test case. 1041[----------] Global test environment set-up. 1042[----------] 1 test from PassingTest 1043[ RUN ] PassingTest.PassingTest2 1044[ OK ] PassingTest.PassingTest2 1045[----------] Global test environment tear-down 1046[==========] 1 test from 1 test case ran. 1047[ PASSED ] 1 test. 1048