Use unique name for AlertNotify tempfile

This commit is contained in:
Casey Rodarmor 2015-08-05 23:10:14 -04:00 committed by Luke Dashjr
parent 4e5ea71bd5
commit 843469ee15
1 changed files with 2 additions and 2 deletions

View File

@ -158,8 +158,8 @@ BOOST_AUTO_TEST_CASE(AlertNotify)
{ {
SetMockTime(11); SetMockTime(11);
boost::filesystem::path temp = GetTempPath() / "alertnotify.txt"; boost::filesystem::path temp = GetTempPath() /
boost::filesystem::remove(temp); boost::filesystem::unique_path("alertnotify-%%%%.txt");
mapArgs["-alertnotify"] = std::string("echo %s >> ") + temp.string(); mapArgs["-alertnotify"] = std::string("echo %s >> ") + temp.string();