diff options
author | Peter Wu <peter@lekensteyn.nl> | 2017-10-15 19:21:23 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2017-10-15 19:21:23 +0100 |
commit | e594b6fe06144e08ca5cd98abbb16a741a60306e (patch) | |
tree | 4e4bc75fbae0c2559cad28306bb03d90da8f977e /gtests | |
parent | 65cfc6ceb022925e5190e167dee34801abe12236 (diff) | |
download | nss-hg-e594b6fe06144e08ca5cd98abbb16a741a60306e.tar.gz |
Bug 1405565 - ssl_keylog_unittest: ignore remove failure, r=mt
The file normally does not exist (ENOENT), only when running tests
manually (direct execution of the ssl_gtests binary) you will run into
existing files. Ignore the return result to please Coverity.
Diffstat (limited to 'gtests')
-rw-r--r-- | gtests/ssl_gtest/ssl_keylog_unittest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtests/ssl_gtest/ssl_keylog_unittest.cc b/gtests/ssl_gtest/ssl_keylog_unittest.cc index 33eb1dac0..c390e16d7 100644 --- a/gtests/ssl_gtest/ssl_keylog_unittest.cc +++ b/gtests/ssl_gtest/ssl_keylog_unittest.cc @@ -19,7 +19,8 @@ class KeyLogFileTest : public TlsConnectGeneric { public: void SetUp() { TlsConnectTestBase::SetUp(); - remove(keylog_file_path.c_str()); + // Remove previous results (if any). + (void)remove(keylog_file_path.c_str()); std::ostringstream sstr; sstr << "SSLKEYLOGFILE=" << keylog_file_path; PR_SetEnv(sstr.str().c_str()); |