gtest_output_test_golden_lin.txt 29 KB

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