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.

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