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