/Unittests/googletest/test/gtest_output_test_golden_lin.txt

http://unladen-swallow.googlecode.com/ · Plain Text · 634 lines · 607 code · 27 blank · 0 comment · 0 complexity · 1d635a870887fe85a5c428a41f7f4cba MD5 · raw file

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