We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4fe57d + 231c560 commit 41d650fCopy full SHA for 41d650f
src/test/alert_tests.cpp
@@ -162,8 +162,8 @@ BOOST_AUTO_TEST_CASE(AlertNotify)
162
SetMockTime(11);
163
const std::vector<unsigned char>& alertKey = Params(CBaseChainParams::MAIN).AlertKey();
164
165
- boost::filesystem::path temp = GetTempPath() / "alertnotify.txt";
166
- boost::filesystem::remove(temp);
+ boost::filesystem::path temp = GetTempPath() /
+ boost::filesystem::unique_path("alertnotify-%%%%.txt");
167
168
mapArgs["-alertnotify"] = std::string("echo %s >> ") + temp.string();
169
0 commit comments