Add missing declarations for Google Tests flags
Add declarations for install_failure_signal_handler and flagfile. Fix Clang warnings: | warning: no previous extern declaration for non-static variable | 'FLAGS_gtest_install_failure_signal_handler' [-Wmissing-variable-declarations] | warning: no previous extern declaration for non-static variable | 'FLAGS_gtest_flagfile' | [-Wmissing-variable-declarations]
This commit is contained in:
parent
bb18e25d15
commit
8f279122de
@ -116,6 +116,10 @@ GTEST_DECLARE_string_(color);
|
||||
// the tests to run. If the filter is not given all tests are executed.
|
||||
GTEST_DECLARE_string_(filter);
|
||||
|
||||
// This flag controls whether Google Test installs a signal handler that dumps
|
||||
// debugging information when fatal signals are raised.
|
||||
GTEST_DECLARE_bool_(install_failure_signal_handler);
|
||||
|
||||
// This flag causes the Google Test to list tests. None of the tests listed
|
||||
// are actually run if the flag is provided.
|
||||
GTEST_DECLARE_bool_(list_tests);
|
||||
@ -159,6 +163,10 @@ GTEST_DECLARE_bool_(throw_on_failure);
|
||||
// the specified host machine.
|
||||
GTEST_DECLARE_string_(stream_result_to);
|
||||
|
||||
#if GTEST_USE_OWN_FLAGFILE_FLAG_
|
||||
GTEST_DECLARE_string_(flagfile);
|
||||
#endif // GTEST_USE_OWN_FLAGFILE_FLAG_
|
||||
|
||||
// The upper limit for valid stack trace depths.
|
||||
const int kMaxStackTraceDepth = 100;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user