Skip to content

Commit

Permalink
Bug 1287711 - Use PR_SetEnv, a=bustage
Browse files Browse the repository at this point in the history
--HG--
extra : rebase_source : 3c61a8979cbe76ed73cefcc197611e57d8ba1cd7
  • Loading branch information
martinthomson committed Oct 3, 2017
1 parent 2da79ea commit 621f10d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gtests/ssl_gtest/ssl_keylog_unittest.cc
Expand Up @@ -13,14 +13,16 @@

namespace nss_test {

static const char *keylog_file_path = "keylog.txt";
static const std::string keylog_file_path = "keylog.txt";

class KeyLogFileTest : public TlsConnectGeneric {
public:
void SetUp() {
TlsConnectTestBase::SetUp();
remove(keylog_file_path);
setenv("SSLKEYLOGFILE", keylog_file_path, 1);
std::ostringstream sstr;
sstr << "SSLKEYLOGFILE=" << keylog_file_path;
PR_SetEnv(sstr.c_str());
}

void CheckKeyLog() {
Expand Down

0 comments on commit 621f10d

Please sign in to comment.