diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-08-07 08:21:44 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-08-07 08:22:11 +0200 |
commit | 41d650ff92fd2a2e6960dac51652448ed670a52e (patch) | |
tree | 63d3adab92e9b3b042f1eda48d948acdd857a4c9 | |
parent | a4fe57da6207c1e5691a1e843d22db571f3f0186 (diff) | |
parent | 231c5601a1cd7689fa59e9b67b088b2d5f8d0e1c (diff) |
Merge pull request #6527
231c560 Use unique name for AlertNotify tempfile (Casey Rodarmor)
-rw-r--r-- | src/test/alert_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/alert_tests.cpp b/src/test/alert_tests.cpp index b8d5606cc3..dd3c51d09b 100644 --- a/src/test/alert_tests.cpp +++ b/src/test/alert_tests.cpp @@ -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(); |