#include <stdio.h>
#include "gtest/gtest.h"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 109 of file gtest_premature_exit_test.cc.
109 {
112
113
114
115 const char*
const filepath =
GetEnv(
"TEST_PREMATURE_EXIT_FILE");
116 if (filepath != nullptr && *filepath != '\0') {
117 if (PrematureExitTest::FileExists(filepath)) {
118 printf(
119 "File %s shouldn't exist after the test program finishes, but does.",
120 filepath);
121 return 1;
122 }
123 }
124
125 return exit_code;
126}
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
const char * GetEnv(const char *name)