mirror of
https://github.com/google/googletest.git
synced 2025-03-19 10:23:48 +00:00
add documentation for the premature-exit-file protocol
This commit is contained in:
parent
e08a460277
commit
dee725b053
@ -2541,6 +2541,18 @@ IMPORTANT: The exact format of the JSON document is subject to change.
|
|||||||
|
|
||||||
### Controlling How Failures Are Reported
|
### Controlling How Failures Are Reported
|
||||||
|
|
||||||
|
#### Detecting Test Premature Exit
|
||||||
|
|
||||||
|
Google Test implements the _premature-exit-file_ protocol for test runners
|
||||||
|
to catch any kind of unexpected exits of test programs. Upon start,
|
||||||
|
Google Test creates the file which will be automatically deleted after
|
||||||
|
all work has been finished. Then, the test runner can check if this file
|
||||||
|
exists. In case the file remains undeleted, the inspected test has exited
|
||||||
|
prematurely.
|
||||||
|
|
||||||
|
This feature is enabled only if the `TEST_PREMATURE_EXIT_FILE` environment
|
||||||
|
variable has been set.
|
||||||
|
|
||||||
#### Turning Assertion Failures into Break-Points
|
#### Turning Assertion Failures into Break-Points
|
||||||
|
|
||||||
When running test programs under a debugger, it's very convenient if the
|
When running test programs under a debugger, it's very convenient if the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user