gcode-mirror / googletest

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

Tests are incorrectly reported as having run despite fatal assertion in Global Setup #457

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IMPORTANT NOTE: PLEASE send issues or requests to
http://groups.google.com/group/googletestframework *instead of here*.
This issue tracker is NOT regularly monitored.

If you really need to create a new issue, please provide the information
asked for below.

What steps will reproduce the problem?
1. Create a Global Test Environment with Setup and Teardown steps and add it to 
the environments. 
2. Create a fail assertion in the global setup (i.e. if the setup failed)
3. Run the executable 

What is the expected output? What do you see instead?

Expected that if the global setup failed, the tests do not actually run (which 
is the observed behaviour) and the output to the window and XML file  would 
reflect the fact the tests were not run. 

Instead, the tests are not run, but the output will state "X tests from Y test 
cases ran. [PASSED] X Tests." The XML file also indicates the tests passed even 
though they were not run. 

What version of Google Test are you using? On what operating system?
1.7.0. Windows 7 MSVC 32 bit 2013 compiler

Please provide any additional information below, such as a code snippet.

Original issue reported on code.google.com by sean.f.d...@gmail.com on 24 Apr 2014 at 5:18