Browse Source

Use unique name for AlertNotify tempfile

pull/145/head
Casey Rodarmor 9 years ago
committed by Luke Dashjr
parent
commit
f6d29a6ca8
  1. 4
      src/test/alert_tests.cpp

4
src/test/alert_tests.cpp

@ -165,8 +165,8 @@ BOOST_AUTO_TEST_CASE(AlertNotify)
SetMockTime(11);
const std::vector<unsigned char>& alertKey = Params(CBaseChainParams::MAIN).AlertKey();
boost::filesystem::path temp = GetTempPath() / "alertnotify.txt";
boost::filesystem::remove(temp);
boost::filesystem::path temp = GetTempPath() /
boost::filesystem::unique_path("alertnotify-%%%%.txt");
mapArgs["-alertnotify"] = std::string("echo %s >> ") + temp.string();

Loading…
Cancel
Save