diff options
author | Krystian Kuzniarek <krystian.kuzniarek@gmail.com> | 2019-11-11 16:17:52 (GMT) |
---|---|---|
committer | Krystian Kuzniarek <krystian.kuzniarek@gmail.com> | 2019-11-11 16:17:52 (GMT) |
commit | dee725b05332ca59a679c7b7dde5297c502d34b4 (patch) | |
tree | caf6eef82545668a3b6857e0d282980a19857f19 /googletest/docs | |
parent | e08a4602778b3cbea36dbd53724db0f18840e274 (diff) | |
download | googletest-dee725b05332ca59a679c7b7dde5297c502d34b4.zip googletest-dee725b05332ca59a679c7b7dde5297c502d34b4.tar.gz googletest-dee725b05332ca59a679c7b7dde5297c502d34b4.tar.bz2 |
add documentation for the premature-exit-file protocolrefs/pull/2715/head
Diffstat (limited to 'googletest/docs')
-rw-r--r-- | googletest/docs/advanced.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index ce8644e..217d527 100644 --- a/googletest/docs/advanced.md +++ b/googletest/docs/advanced.md @@ -2541,6 +2541,18 @@ IMPORTANT: The exact format of the JSON document is subject to change. ### 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 When running test programs under a debugger, it's very convenient if the |