You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

720 lines
28 KiB

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