diff options
author | lloyd <[email protected]> | 2006-07-28 14:11:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-07-28 14:11:16 +0000 |
commit | 2b4733d5893f0301b15f987c3309befc88eeb768 (patch) | |
tree | 8594a8f7d9b340906d6cdd75c06ed9587a511878 /src/init_opt.cpp | |
parent | b617d283d67c3ee0e05c094e55696dbbd72038e3 (diff) |
Add a "selftest" option that allows the user to disable startup selftests
Diffstat (limited to 'src/init_opt.cpp')
-rw-r--r-- | src/init_opt.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/init_opt.cpp b/src/init_opt.cpp index 0494976d6..5ba05187d 100644 --- a/src/init_opt.cpp +++ b/src/init_opt.cpp @@ -78,6 +78,14 @@ bool InitializerOptions::fips_mode() const } /************************************************* +* Check if startup self tests were requested * +*************************************************/ +bool InitializerOptions::self_test() const + { + return boolean_arg(args, "selftest", true); + } + +/************************************************* * Return the config file to load, if any * *************************************************/ std::string InitializerOptions::config_file() const |