123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047 |
- The non-test part of the code is expected to have 2 failures.
- googletest-output-test_.cc:#: Failure
- Value of: false
- Actual: false
- Expected: true
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 2
- 3
- Stack trace: (omitted)
- [0;32m[==========] [mRunning 76 tests from 34 test cases.
- [0;32m[----------] [mGlobal test environment set-up.
- FooEnvironment::SetUp() called.
- BarEnvironment::SetUp() called.
- [0;32m[----------] [m1 test from ADeathTest
- [0;32m[ RUN ] [mADeathTest.ShouldRunFirst
- [0;32m[ OK ] [mADeathTest.ShouldRunFirst
- [0;32m[----------] [m1 test from ATypedDeathTest/0, where TypeParam = int
- [0;32m[ RUN ] [mATypedDeathTest/0.ShouldRunFirst
- [0;32m[ OK ] [mATypedDeathTest/0.ShouldRunFirst
- [0;32m[----------] [m1 test from ATypedDeathTest/1, where TypeParam = double
- [0;32m[ RUN ] [mATypedDeathTest/1.ShouldRunFirst
- [0;32m[ OK ] [mATypedDeathTest/1.ShouldRunFirst
- [0;32m[----------] [m1 test from My/ATypeParamDeathTest/0, where TypeParam = int
- [0;32m[ RUN ] [mMy/ATypeParamDeathTest/0.ShouldRunFirst
- [0;32m[ OK ] [mMy/ATypeParamDeathTest/0.ShouldRunFirst
- [0;32m[----------] [m1 test from My/ATypeParamDeathTest/1, where TypeParam = double
- [0;32m[ RUN ] [mMy/ATypeParamDeathTest/1.ShouldRunFirst
- [0;32m[ OK ] [mMy/ATypeParamDeathTest/1.ShouldRunFirst
- [0;32m[----------] [m2 tests from PassingTest
- [0;32m[ RUN ] [mPassingTest.PassingTest1
- [0;32m[ OK ] [mPassingTest.PassingTest1
- [0;32m[ RUN ] [mPassingTest.PassingTest2
- [0;32m[ OK ] [mPassingTest.PassingTest2
- [0;32m[----------] [m2 tests from NonfatalFailureTest
- [0;32m[ RUN ] [mNonfatalFailureTest.EscapesStringOperands
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- kGoldenString
- Which is: "\"Line"
- actual
- Which is: "actual \"string\""
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- golden
- Which is: "\"Line"
- actual
- Which is: "actual \"string\""
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mNonfatalFailureTest.EscapesStringOperands
- [0;32m[ RUN ] [mNonfatalFailureTest.DiffForLongStrings
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- golden_str
- Which is: "\"Line\0 1\"\nLine 2"
- "Line 2"
- With diff:
- @@ -1,2 @@
- -\"Line\0 1\"
- Line 2
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mNonfatalFailureTest.DiffForLongStrings
- [0;32m[----------] [m3 tests from FatalFailureTest
- [0;32m[ RUN ] [mFatalFailureTest.FatalFailureInSubroutine
- (expecting a failure that x should be 1)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- x
- Which is: 2
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInSubroutine
- [0;32m[ RUN ] [mFatalFailureTest.FatalFailureInNestedSubroutine
- (expecting a failure that x should be 1)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- x
- Which is: 2
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInNestedSubroutine
- [0;32m[ RUN ] [mFatalFailureTest.NonfatalFailureInSubroutine
- (expecting a failure on false)
- googletest-output-test_.cc:#: Failure
- Value of: false
- Actual: false
- Expected: true
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mFatalFailureTest.NonfatalFailureInSubroutine
- [0;32m[----------] [m1 test from LoggingTest
- [0;32m[ RUN ] [mLoggingTest.InterleavingLoggingAndAssertions
- (expecting 2 failures on (3) >= (a[i]))
- i == 0
- i == 1
- googletest-output-test_.cc:#: Failure
- Expected: (3) >= (a[i]), actual: 3 vs 9
- Stack trace: (omitted)
- i == 2
- i == 3
- googletest-output-test_.cc:#: Failure
- Expected: (3) >= (a[i]), actual: 3 vs 6
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mLoggingTest.InterleavingLoggingAndAssertions
- [0;32m[----------] [m7 tests from SCOPED_TRACETest
- [0;32m[ RUN ] [mSCOPED_TRACETest.AcceptedValues
- googletest-output-test_.cc:#: Failure
- Failed
- Just checking that all these values work fine.
- Google Test trace:
- googletest-output-test_.cc:#: (null)
- googletest-output-test_.cc:#: 1337
- googletest-output-test_.cc:#: std::string
- googletest-output-test_.cc:#: literal string
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mSCOPED_TRACETest.AcceptedValues
- [0;32m[ RUN ] [mSCOPED_TRACETest.ObeysScopes
- (expected to fail)
- googletest-output-test_.cc:#: Failure
- Failed
- This failure is expected, and shouldn't have a trace.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- This failure is expected, and should have a trace.
- Google Test trace:
- googletest-output-test_.cc:#: Expected trace
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- This failure is expected, and shouldn't have a trace.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mSCOPED_TRACETest.ObeysScopes
- [0;32m[ RUN ] [mSCOPED_TRACETest.WorksInLoop
- (expected to fail)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 2
- n
- Which is: 1
- Google Test trace:
- googletest-output-test_.cc:#: i = 1
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- n
- Which is: 2
- Google Test trace:
- googletest-output-test_.cc:#: i = 2
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInLoop
- [0;32m[ RUN ] [mSCOPED_TRACETest.WorksInSubroutine
- (expected to fail)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 2
- n
- Which is: 1
- Google Test trace:
- googletest-output-test_.cc:#: n = 1
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- n
- Which is: 2
- Google Test trace:
- googletest-output-test_.cc:#: n = 2
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInSubroutine
- [0;32m[ RUN ] [mSCOPED_TRACETest.CanBeNested
- (expected to fail)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- n
- Which is: 2
- Google Test trace:
- googletest-output-test_.cc:#: n = 2
- googletest-output-test_.cc:#:
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeNested
- [0;32m[ RUN ] [mSCOPED_TRACETest.CanBeRepeated
- (expected to fail)
- googletest-output-test_.cc:#: Failure
- Failed
- This failure is expected, and should contain trace point A.
- Google Test trace:
- googletest-output-test_.cc:#: A
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- This failure is expected, and should contain trace point A and B.
- Google Test trace:
- googletest-output-test_.cc:#: B
- googletest-output-test_.cc:#: A
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- This failure is expected, and should contain trace point A, B, and C.
- Google Test trace:
- googletest-output-test_.cc:#: C
- googletest-output-test_.cc:#: B
- googletest-output-test_.cc:#: A
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- This failure is expected, and should contain trace point A, B, and D.
- Google Test trace:
- googletest-output-test_.cc:#: D
- googletest-output-test_.cc:#: B
- googletest-output-test_.cc:#: A
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeRepeated
- [0;32m[ RUN ] [mSCOPED_TRACETest.WorksConcurrently
- (expecting 6 failures)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #1 (in thread B, only trace B alive).
- Google Test trace:
- googletest-output-test_.cc:#: Trace B
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #2 (in thread A, trace A & B both alive).
- Google Test trace:
- googletest-output-test_.cc:#: Trace A
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #3 (in thread B, trace A & B both alive).
- Google Test trace:
- googletest-output-test_.cc:#: Trace B
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #4 (in thread B, only trace A alive).
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #5 (in thread A, only trace A alive).
- Google Test trace:
- googletest-output-test_.cc:#: Trace A
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #6 (in thread A, no trace alive).
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mSCOPED_TRACETest.WorksConcurrently
- [0;32m[----------] [m1 test from ScopedTraceTest
- [0;32m[ RUN ] [mScopedTraceTest.WithExplicitFileAndLine
- googletest-output-test_.cc:#: Failure
- Failed
- Check that the trace is attached to a particular location.
- Google Test trace:
- explicit_file.cc:123: expected trace message
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mScopedTraceTest.WithExplicitFileAndLine
- [0;32m[----------] [m1 test from NonFatalFailureInFixtureConstructorTest
- [0;32m[ RUN ] [mNonFatalFailureInFixtureConstructorTest.FailureInConstructor
- (expecting 5 failures)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #1, in the test fixture c'tor.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #2, in SetUp().
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #3, in the test body.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #4, in TearDown.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #5, in the test fixture d'tor.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mNonFatalFailureInFixtureConstructorTest.FailureInConstructor
- [0;32m[----------] [m1 test from FatalFailureInFixtureConstructorTest
- [0;32m[ RUN ] [mFatalFailureInFixtureConstructorTest.FailureInConstructor
- (expecting 2 failures)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #1, in the test fixture c'tor.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #2, in the test fixture d'tor.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mFatalFailureInFixtureConstructorTest.FailureInConstructor
- [0;32m[----------] [m1 test from NonFatalFailureInSetUpTest
- [0;32m[ RUN ] [mNonFatalFailureInSetUpTest.FailureInSetUp
- (expecting 4 failures)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #1, in SetUp().
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #2, in the test function.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #3, in TearDown().
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #4, in the test fixture d'tor.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mNonFatalFailureInSetUpTest.FailureInSetUp
- [0;32m[----------] [m1 test from FatalFailureInSetUpTest
- [0;32m[ RUN ] [mFatalFailureInSetUpTest.FailureInSetUp
- (expecting 3 failures)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #1, in SetUp().
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #2, in TearDown().
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected failure #3, in the test fixture d'tor.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mFatalFailureInSetUpTest.FailureInSetUp
- [0;32m[----------] [m1 test from AddFailureAtTest
- [0;32m[ RUN ] [mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
- foo.cc:42: Failure
- Failed
- Expected failure in foo.cc
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
- [0;32m[----------] [m4 tests from MixedUpTestCaseTest
- [0;32m[ RUN ] [mMixedUpTestCaseTest.FirstTestFromNamespaceFoo
- [0;32m[ OK ] [mMixedUpTestCaseTest.FirstTestFromNamespaceFoo
- [0;32m[ RUN ] [mMixedUpTestCaseTest.SecondTestFromNamespaceFoo
- [0;32m[ OK ] [mMixedUpTestCaseTest.SecondTestFromNamespaceFoo
- [0;32m[ RUN ] [mMixedUpTestCaseTest.ThisShouldFail
- gtest.cc:#: Failure
- Failed
- All tests in the same test case must use the same test fixture
- class. However, in test case MixedUpTestCaseTest,
- you defined test FirstTestFromNamespaceFoo and test ThisShouldFail
- using two different test fixture classes. This can happen if
- the two classes are from different namespaces or translation
- units and have the same name. You should probably rename one
- of the classes to put the tests into different test cases.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFail
- [0;32m[ RUN ] [mMixedUpTestCaseTest.ThisShouldFailToo
- gtest.cc:#: Failure
- Failed
- All tests in the same test case must use the same test fixture
- class. However, in test case MixedUpTestCaseTest,
- you defined test FirstTestFromNamespaceFoo and test ThisShouldFailToo
- using two different test fixture classes. This can happen if
- the two classes are from different namespaces or translation
- units and have the same name. You should probably rename one
- of the classes to put the tests into different test cases.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFailToo
- [0;32m[----------] [m2 tests from MixedUpTestCaseWithSameTestNameTest
- [0;32m[ RUN ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
- [0;32m[ OK ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
- [0;32m[ RUN ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
- gtest.cc:#: Failure
- Failed
- All tests in the same test case must use the same test fixture
- class. However, in test case MixedUpTestCaseWithSameTestNameTest,
- you defined test TheSecondTestWithThisNameShouldFail and test TheSecondTestWithThisNameShouldFail
- using two different test fixture classes. This can happen if
- the two classes are from different namespaces or translation
- units and have the same name. You should probably rename one
- of the classes to put the tests into different test cases.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
- [0;32m[----------] [m2 tests from TEST_F_before_TEST_in_same_test_case
- [0;32m[ RUN ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F
- [0;32m[ OK ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTEST_F
- [0;32m[ RUN ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
- gtest.cc:#: Failure
- Failed
- All tests in the same test case must use the same test fixture
- class, so mixing TEST_F and TEST in the same test case is
- illegal. In test case TEST_F_before_TEST_in_same_test_case,
- test DefinedUsingTEST_F is defined using TEST_F but
- test DefinedUsingTESTAndShouldFail is defined using TEST. You probably
- want to change the TEST to TEST_F or move it to another test
- case.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
- [0;32m[----------] [m2 tests from TEST_before_TEST_F_in_same_test_case
- [0;32m[ RUN ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST
- [0;32m[ OK ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST
- [0;32m[ RUN ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
- gtest.cc:#: Failure
- Failed
- All tests in the same test case must use the same test fixture
- class, so mixing TEST_F and TEST in the same test case is
- illegal. In test case TEST_before_TEST_F_in_same_test_case,
- test DefinedUsingTEST_FAndShouldFail is defined using TEST_F but
- test DefinedUsingTEST is defined using TEST. You probably
- want to change the TEST to TEST_F or move it to another test
- case.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
- [0;32m[----------] [m8 tests from ExpectNonfatalFailureTest
- [0;32m[ RUN ] [mExpectNonfatalFailureTest.CanReferenceGlobalVariables
- [0;32m[ OK ] [mExpectNonfatalFailureTest.CanReferenceGlobalVariables
- [0;32m[ RUN ] [mExpectNonfatalFailureTest.CanReferenceLocalVariables
- [0;32m[ OK ] [mExpectNonfatalFailureTest.CanReferenceLocalVariables
- [0;32m[ RUN ] [mExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure
- [0;32m[ OK ] [mExpectNonfatalFailureTest.SucceedsWhenThereIsOneNonfatalFailure
- [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual: 0 failures
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
- [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual: 2 failures
- googletest-output-test_.cc:#: Non-fatal failure:
- Failed
- Expected non-fatal failure 1.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Non-fatal failure:
- Failed
- Expected non-fatal failure 2.
- Stack trace: (omitted)
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
- [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual:
- googletest-output-test_.cc:#: Fatal failure:
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
- [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual: 0 failures
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns
- [0;32m[ RUN ] [mExpectNonfatalFailureTest.FailsWhenStatementThrows
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual: 0 failures
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementThrows
- [0;32m[----------] [m8 tests from ExpectFatalFailureTest
- [0;32m[ RUN ] [mExpectFatalFailureTest.CanReferenceGlobalVariables
- [0;32m[ OK ] [mExpectFatalFailureTest.CanReferenceGlobalVariables
- [0;32m[ RUN ] [mExpectFatalFailureTest.CanReferenceLocalStaticVariables
- [0;32m[ OK ] [mExpectFatalFailureTest.CanReferenceLocalStaticVariables
- [0;32m[ RUN ] [mExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure
- [0;32m[ OK ] [mExpectFatalFailureTest.SucceedsWhenThereIsOneFatalFailure
- [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual: 0 failures
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
- [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual: 2 failures
- googletest-output-test_.cc:#: Fatal failure:
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Fatal failure:
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
- [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual:
- googletest-output-test_.cc:#: Non-fatal failure:
- Failed
- Expected non-fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
- [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenStatementReturns
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual: 0 failures
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementReturns
- [0;32m[ RUN ] [mExpectFatalFailureTest.FailsWhenStatementThrows
- (expecting a failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual: 0 failures
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementThrows
- [0;32m[----------] [m2 tests from TypedTest/0, where TypeParam = int
- [0;32m[ RUN ] [mTypedTest/0.Success
- [0;32m[ OK ] [mTypedTest/0.Success
- [0;32m[ RUN ] [mTypedTest/0.Failure
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- TypeParam()
- Which is: 0
- Expected failure
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mTypedTest/0.Failure, where TypeParam = int
- [0;32m[----------] [m2 tests from TypedTestWithNames/char0, where TypeParam = char
- [0;32m[ RUN ] [mTypedTestWithNames/char0.Success
- [0;32m[ OK ] [mTypedTestWithNames/char0.Success
- [0;32m[ RUN ] [mTypedTestWithNames/char0.Failure
- googletest-output-test_.cc:#: Failure
- Failed
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mTypedTestWithNames/char0.Failure, where TypeParam = char
- [0;32m[----------] [m2 tests from TypedTestWithNames/int1, where TypeParam = int
- [0;32m[ RUN ] [mTypedTestWithNames/int1.Success
- [0;32m[ OK ] [mTypedTestWithNames/int1.Success
- [0;32m[ RUN ] [mTypedTestWithNames/int1.Failure
- googletest-output-test_.cc:#: Failure
- Failed
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mTypedTestWithNames/int1.Failure, where TypeParam = int
- [0;32m[----------] [m2 tests from Unsigned/TypedTestP/0, where TypeParam = unsigned char
- [0;32m[ RUN ] [mUnsigned/TypedTestP/0.Success
- [0;32m[ OK ] [mUnsigned/TypedTestP/0.Success
- [0;32m[ RUN ] [mUnsigned/TypedTestP/0.Failure
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1U
- Which is: 1
- TypeParam()
- Which is: '\0'
- Expected failure
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
- [0;32m[----------] [m2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned int
- [0;32m[ RUN ] [mUnsigned/TypedTestP/1.Success
- [0;32m[ OK ] [mUnsigned/TypedTestP/1.Success
- [0;32m[ RUN ] [mUnsigned/TypedTestP/1.Failure
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1U
- Which is: 1
- TypeParam()
- Which is: 0
- Expected failure
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
- [0;32m[----------] [m2 tests from UnsignedCustomName/TypedTestP/unsignedChar0, where TypeParam = unsigned char
- [0;32m[ RUN ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Success
- [0;32m[ OK ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Success
- [0;32m[ RUN ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Failure
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1U
- Which is: 1
- TypeParam()
- Which is: '\0'
- Expected failure
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Failure, where TypeParam = unsigned char
- [0;32m[----------] [m2 tests from UnsignedCustomName/TypedTestP/unsignedInt1, where TypeParam = unsigned int
- [0;32m[ RUN ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Success
- [0;32m[ OK ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Success
- [0;32m[ RUN ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Failure
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1U
- Which is: 1
- TypeParam()
- Which is: 0
- Expected failure
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Failure, where TypeParam = unsigned int
- [0;32m[----------] [m4 tests from ExpectFailureTest
- [0;32m[ RUN ] [mExpectFailureTest.ExpectFatalFailure
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual:
- googletest-output-test_.cc:#: Success:
- Succeeded
- Stack trace: (omitted)
- Stack trace: (omitted)
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual:
- googletest-output-test_.cc:#: Non-fatal failure:
- Failed
- Expected non-fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure containing "Some other fatal failure expected."
- Actual:
- googletest-output-test_.cc:#: Fatal failure:
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailure
- [0;32m[ RUN ] [mExpectFailureTest.ExpectNonFatalFailure
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual:
- googletest-output-test_.cc:#: Success:
- Succeeded
- Stack trace: (omitted)
- Stack trace: (omitted)
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual:
- googletest-output-test_.cc:#: Fatal failure:
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure containing "Some other non-fatal failure."
- Actual:
- googletest-output-test_.cc:#: Non-fatal failure:
- Failed
- Expected non-fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailure
- [0;32m[ RUN ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual:
- googletest-output-test_.cc:#: Success:
- Succeeded
- Stack trace: (omitted)
- Stack trace: (omitted)
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual:
- googletest-output-test_.cc:#: Non-fatal failure:
- Failed
- Expected non-fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 fatal failure containing "Some other fatal failure expected."
- Actual:
- googletest-output-test_.cc:#: Fatal failure:
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads
- [0;32m[ RUN ] [mExpectFailureTest.ExpectNonFatalFailureOnAllThreads
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual:
- googletest-output-test_.cc:#: Success:
- Succeeded
- Stack trace: (omitted)
- Stack trace: (omitted)
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual:
- googletest-output-test_.cc:#: Fatal failure:
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- (expecting 1 failure)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure containing "Some other non-fatal failure."
- Actual:
- googletest-output-test_.cc:#: Non-fatal failure:
- Failed
- Expected non-fatal failure.
- Stack trace: (omitted)
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailureOnAllThreads
- [0;32m[----------] [m2 tests from ExpectFailureWithThreadsTest
- [0;32m[ RUN ] [mExpectFailureWithThreadsTest.ExpectFatalFailure
- (expecting 2 failures)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- gtest.cc:#: Failure
- Expected: 1 fatal failure
- Actual: 0 failures
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectFatalFailure
- [0;32m[ RUN ] [mExpectFailureWithThreadsTest.ExpectNonFatalFailure
- (expecting 2 failures)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected non-fatal failure.
- Stack trace: (omitted)
- gtest.cc:#: Failure
- Expected: 1 non-fatal failure
- Actual: 0 failures
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectNonFatalFailure
- [0;32m[----------] [m1 test from ScopedFakeTestPartResultReporterTest
- [0;32m[ RUN ] [mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
- (expecting 2 failures)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- googletest-output-test_.cc:#: Failure
- Failed
- Expected non-fatal failure.
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
- [0;32m[----------] [m1 test from PrintingFailingParams/FailingParamTest
- [0;32m[ RUN ] [mPrintingFailingParams/FailingParamTest.Fails/0
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- GetParam()
- Which is: 2
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
- [0;32m[----------] [m2 tests from PrintingStrings/ParamTest
- [0;32m[ RUN ] [mPrintingStrings/ParamTest.Success/a
- [0;32m[ OK ] [mPrintingStrings/ParamTest.Success/a
- [0;32m[ RUN ] [mPrintingStrings/ParamTest.Failure/a
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- "b"
- GetParam()
- Which is: "a"
- Expected failure
- Stack trace: (omitted)
- [0;31m[ FAILED ] [mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
- [0;32m[----------] [mGlobal test environment tear-down
- BarEnvironment::TearDown() called.
- googletest-output-test_.cc:#: Failure
- Failed
- Expected non-fatal failure.
- Stack trace: (omitted)
- FooEnvironment::TearDown() called.
- googletest-output-test_.cc:#: Failure
- Failed
- Expected fatal failure.
- Stack trace: (omitted)
- [0;32m[==========] [m76 tests from 34 test cases ran.
- [0;32m[ PASSED ] [m26 tests.
- [0;31m[ FAILED ] [m50 tests, listed below:
- [0;31m[ FAILED ] [mNonfatalFailureTest.EscapesStringOperands
- [0;31m[ FAILED ] [mNonfatalFailureTest.DiffForLongStrings
- [0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInSubroutine
- [0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInNestedSubroutine
- [0;31m[ FAILED ] [mFatalFailureTest.NonfatalFailureInSubroutine
- [0;31m[ FAILED ] [mLoggingTest.InterleavingLoggingAndAssertions
- [0;31m[ FAILED ] [mSCOPED_TRACETest.AcceptedValues
- [0;31m[ FAILED ] [mSCOPED_TRACETest.ObeysScopes
- [0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInLoop
- [0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInSubroutine
- [0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeNested
- [0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeRepeated
- [0;31m[ FAILED ] [mSCOPED_TRACETest.WorksConcurrently
- [0;31m[ FAILED ] [mScopedTraceTest.WithExplicitFileAndLine
- [0;31m[ FAILED ] [mNonFatalFailureInFixtureConstructorTest.FailureInConstructor
- [0;31m[ FAILED ] [mFatalFailureInFixtureConstructorTest.FailureInConstructor
- [0;31m[ FAILED ] [mNonFatalFailureInSetUpTest.FailureInSetUp
- [0;31m[ FAILED ] [mFatalFailureInSetUpTest.FailureInSetUp
- [0;31m[ FAILED ] [mAddFailureAtTest.MessageContainsSpecifiedFileAndLineNumber
- [0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFail
- [0;31m[ FAILED ] [mMixedUpTestCaseTest.ThisShouldFailToo
- [0;31m[ FAILED ] [mMixedUpTestCaseWithSameTestNameTest.TheSecondTestWithThisNameShouldFail
- [0;31m[ FAILED ] [mTEST_F_before_TEST_in_same_test_case.DefinedUsingTESTAndShouldFail
- [0;31m[ FAILED ] [mTEST_before_TEST_F_in_same_test_case.DefinedUsingTEST_FAndShouldFail
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsNoNonfatalFailure
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereAreTwoNonfatalFailures
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenThereIsOneFatalFailure
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementReturns
- [0;31m[ FAILED ] [mExpectNonfatalFailureTest.FailsWhenStatementThrows
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsNoFatalFailure
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereAreTwoFatalFailures
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenThereIsOneNonfatalFailure
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementReturns
- [0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementThrows
- [0;31m[ FAILED ] [mTypedTest/0.Failure, where TypeParam = int
- [0;31m[ FAILED ] [mTypedTestWithNames/char0.Failure, where TypeParam = char
- [0;31m[ FAILED ] [mTypedTestWithNames/int1.Failure, where TypeParam = int
- [0;31m[ FAILED ] [mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
- [0;31m[ FAILED ] [mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
- [0;31m[ FAILED ] [mUnsignedCustomName/TypedTestP/unsignedChar0.Failure, where TypeParam = unsigned char
- [0;31m[ FAILED ] [mUnsignedCustomName/TypedTestP/unsignedInt1.Failure, where TypeParam = unsigned int
- [0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailure
- [0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailure
- [0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads
- [0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailureOnAllThreads
- [0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectFatalFailure
- [0;31m[ FAILED ] [mExpectFailureWithThreadsTest.ExpectNonFatalFailure
- [0;31m[ FAILED ] [mScopedFakeTestPartResultReporterTest.InterceptOnlyCurrentThread
- [0;31m[ FAILED ] [mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
- [0;31m[ FAILED ] [mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
- 50 FAILED TESTS
- [0;33m YOU HAVE 1 DISABLED TEST
- [mNote: Google Test filter = FatalFailureTest.*:LoggingTest.*
- [==========] Running 4 tests from 2 test cases.
- [----------] Global test environment set-up.
- [----------] 3 tests from FatalFailureTest
- [ RUN ] FatalFailureTest.FatalFailureInSubroutine
- (expecting a failure that x should be 1)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- x
- Which is: 2
- Stack trace: (omitted)
- [ FAILED ] FatalFailureTest.FatalFailureInSubroutine (? ms)
- [ RUN ] FatalFailureTest.FatalFailureInNestedSubroutine
- (expecting a failure that x should be 1)
- googletest-output-test_.cc:#: Failure
- Expected equality of these values:
- 1
- x
- Which is: 2
- Stack trace: (omitted)
- [ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms)
- [ RUN ] FatalFailureTest.NonfatalFailureInSubroutine
- (expecting a failure on false)
- googletest-output-test_.cc:#: Failure
- Value of: false
- Actual: false
- Expected: true
- Stack trace: (omitted)
- [ FAILED ] FatalFailureTest.NonfatalFailureInSubroutine (? ms)
- [----------] 3 tests from FatalFailureTest (? ms total)
- [----------] 1 test from LoggingTest
- [ RUN ] LoggingTest.InterleavingLoggingAndAssertions
- (expecting 2 failures on (3) >= (a[i]))
- i == 0
- i == 1
- googletest-output-test_.cc:#: Failure
- Expected: (3) >= (a[i]), actual: 3 vs 9
- Stack trace: (omitted)
- i == 2
- i == 3
- googletest-output-test_.cc:#: Failure
- Expected: (3) >= (a[i]), actual: 3 vs 6
- Stack trace: (omitted)
- [ FAILED ] LoggingTest.InterleavingLoggingAndAssertions (? ms)
- [----------] 1 test from LoggingTest (? ms total)
- [----------] Global test environment tear-down
- [==========] 4 tests from 2 test cases ran. (? ms total)
- [ PASSED ] 0 tests.
- [ FAILED ] 4 tests, listed below:
- [ FAILED ] FatalFailureTest.FatalFailureInSubroutine
- [ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine
- [ FAILED ] FatalFailureTest.NonfatalFailureInSubroutine
- [ FAILED ] LoggingTest.InterleavingLoggingAndAssertions
- 4 FAILED TESTS
- Note: Google Test filter = *DISABLED_*
- [==========] Running 1 test from 1 test case.
- [----------] Global test environment set-up.
- [----------] 1 test from DisabledTestsWarningTest
- [ RUN ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning
- [ OK ] DisabledTestsWarningTest.DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning
- [----------] Global test environment tear-down
- [==========] 1 test from 1 test case ran.
- [ PASSED ] 1 test.
- Note: Google Test filter = PassingTest.*
- Note: This is test shard 2 of 2.
- [==========] Running 1 test from 1 test case.
- [----------] Global test environment set-up.
- [----------] 1 test from PassingTest
- [ RUN ] PassingTest.PassingTest2
- [ OK ] PassingTest.PassingTest2
- [----------] Global test environment tear-down
- [==========] 1 test from 1 test case ran.
- [ PASSED ] 1 test.
|