Permalink
Browse files

Merge pull request #6527

231c560 Use unique name for AlertNotify tempfile (Casey Rodarmor)
  • Loading branch information...
laanwj committed Aug 7, 2015
2 parents a4fe57d + 231c560 commit 41d650ff92fd2a2e6960dac51652448ed670a52e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/alert_tests.cpp
View
@@ -162,8 +162,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();

0 comments on commit 41d650f

Please sign in to comment.