theRockLiu / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fatal failure in SetUpTestCase() function should skip running tests. #247

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I think googletest should skip running tests (or automatically mark as
failed) in a particular fixture if we call SetUpTestCase() function
and there is fatal failure in it. Suppose we create some shared object
in SetUpTestCase() function and try to access that in TEST_F. But the
failure to create that object in SetUpTestCase() cause to access NULL
inside TEST_F.

So if we make fatal assertion in SetUpTestCase() itself, then above
problem can be avoided.

Original issue reported on code.google.com by pvshew...@gmail.com on 11 Jan 2010 at 6:39

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 11 Jan 2010 at 6:46