| 95 | class FlagsValidatorsDeathTest : public KuduTest { |
| 96 | public: |
| 97 | void Run(const char** argv, int argc) { |
| 98 | debug::ScopedLeakCheckDisabler disabler; |
| 99 | char** casted_argv = const_cast<char**>(argv); |
| 100 | // ParseCommandLineFlags() calls exit(1) if one of the custom validators |
| 101 | // finds inconsistency in flags. |
| 102 | ParseCommandLineFlags(&argc, &casted_argv, true); |
| 103 | exit(0); |
| 104 | } |
| 105 | |
| 106 | void RunSuccess(const char** argv, int argc) { |
| 107 | EXPECT_EXIT(Run(argv, argc), ::testing::ExitedWithCode(0), ".*"); |
nothing calls this directly
no test coverage detected