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