Go to the source code of this file.
|
| DEFINE_string (category,"","Crash with a message to this category instead of the default") |
|
| DEFINE_bool (crash, true,"Crash with a fatal log message.") |
|
| DEFINE_bool (check_debug, false,"Print whether this binary was built in debug mode ""and then exit successfully") |
|
| DEFINE_bool (fail_fatal_xlog_if, false,"Fail an XLOG_IF(FATAL) check.") |
|
| DEFINE_bool (fail_dfatal_xlog_if, false,"Fail an XLOG_IF(DFATAL) check.") |
|
| DEFINE_bool (fail_xcheck, false,"Fail an XCHECK() test.") |
|
| DEFINE_bool (fail_xcheck_nomsg, false,"Fail an XCHECK() test with no additional message.") |
|
| DEFINE_bool (fail_xdcheck, false,"Fail an XDCHECK() test.") |
|
std::string | fbLogFatalCheck () |
|
int | main (int argc, char *argv[]) |
|
DEFINE_bool |
( |
crash |
, |
|
|
true |
, |
|
|
"Crash with a fatal log message." |
|
|
) |
| |
DEFINE_bool |
( |
check_debug |
, |
|
|
false |
, |
|
|
"Print whether this binary was built in debug mode ""and then exit successfully" |
|
|
) |
| |
DEFINE_bool |
( |
fail_fatal_xlog_if |
, |
|
|
false |
, |
|
|
"Fail an XLOG_IF(FATAL) check." |
|
|
) |
| |
DEFINE_bool |
( |
fail_dfatal_xlog_if |
, |
|
|
false |
, |
|
|
"Fail an XLOG_IF(DFATAL) check." |
|
|
) |
| |
DEFINE_bool |
( |
fail_xcheck |
, |
|
|
false |
, |
|
|
"Fail an XCHECK() test." |
|
|
) |
| |
DEFINE_bool |
( |
fail_xcheck_nomsg |
, |
|
|
false |
, |
|
|
"Fail an XCHECK() test with no additional message." |
|
|
) |
| |
DEFINE_bool |
( |
fail_xdcheck |
, |
|
|
false |
, |
|
|
"Fail an XDCHECK() test." |
|
|
) |
| |
DEFINE_string |
( |
category |
, |
|
|
"" |
, |
|
|
"Crash with a message to this category instead of the default" |
|
|
) |
| |
Definition at line 88 of file FatalHelper.cpp.
References FB_LOG.
90 FB_LOG(logger, FATAL) <<
"we always crash";
#define FB_LOG(logger, level,...)
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 98 of file FatalHelper.cpp.
References bm::init(), folly::kIsDebug, XCHECK, XDCHECK, and XLOG_IF.
101 if (FLAGS_check_debug) {
106 XLOG_IF(FATAL, FLAGS_fail_fatal_xlog_if) <<
"--fail_fatal_xlog_if specified!";
107 XLOG_IF(DFATAL, FLAGS_fail_dfatal_xlog_if)
108 <<
"--fail_dfatal_xlog_if specified!";
109 XCHECK(!FLAGS_fail_xcheck) <<
": --fail_xcheck specified!";
110 XCHECK(!FLAGS_fail_xcheck_nomsg);
111 XDCHECK(!FLAGS_fail_xdcheck) <<
": --fail_xdcheck specified!";
#define XLOG_IF(level, cond,...)
#define XDCHECK(cond,...)