mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Use unique name for AlertNotify tempfile
This commit is contained in:
parent
e6adac7b3f
commit
f6d29a6ca8
1 changed files with 2 additions and 2 deletions
|
|
@ -165,8 +165,8 @@ BOOST_AUTO_TEST_CASE(AlertNotify)
|
||||||
SetMockTime(11);
|
SetMockTime(11);
|
||||||
const std::vector<unsigned char>& alertKey = Params(CBaseChainParams::MAIN).AlertKey();
|
const std::vector<unsigned char>& alertKey = Params(CBaseChainParams::MAIN).AlertKey();
|
||||||
|
|
||||||
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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue