googletest-output-test-golden-lin.txt 35 KB

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