35 #include "gtest/gtest.h" 39 #define GTEST_IMPLEMENTATION_ 1 40 #include "src/gtest-internal-inl.h" 41 #undef GTEST_IMPLEMENTATION_ 54 if (strcmp(flag,
"break_on_failure") == 0) {
59 if (strcmp(flag,
"catch_exceptions") == 0) {
64 if (strcmp(flag,
"color") == 0) {
69 if (strcmp(flag,
"death_test_style") == 0) {
74 if (strcmp(flag,
"death_test_use_fork") == 0) {
79 if (strcmp(flag,
"filter") == 0) {
84 if (strcmp(flag,
"output") == 0) {
89 if (strcmp(flag,
"print_time") == 0) {
94 if (strcmp(flag,
"repeat") == 0) {
99 if (strcmp(flag,
"stack_trace_depth") == 0) {
104 if (strcmp(flag,
"throw_on_failure") == 0) {
109 cout <<
"Invalid flag name " << flag
110 <<
". Valid names are break_on_failure, color, filter, etc.\n";
116 int main(
int argc,
char** argv) {
120 cout <<
"Usage: gtest_env_var_test_ NAME_OF_FLAG\n";
TEST(GTestEnvVarTest, Dummy)
int main(int argc, char **argv)
void PrintFlag(const char *flag)
void InitGoogleTest(int *argc, char **argv)