/Unittests/googletest/test/gtest_output_test_golden_win.txt

http://unladen-swallow.googlecode.com/ · Plain Text · 605 lines · 578 code · 27 blank · 0 comment · 0 complexity · 84d2d9b075b056055ab576f7644381d3 MD5 · raw file

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