diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-08-07 08:21:44 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-08-07 08:22:11 +0200 |
| commit | 41d650ff92fd2a2e6960dac51652448ed670a52e (patch) | |
| tree | 63d3adab92e9b3b042f1eda48d948acdd857a4c9 /src | |
| parent | Revert "Assert on probable deadlocks if the second lock isnt try_lock" (diff) | |
| parent | Use unique name for AlertNotify tempfile (diff) | |
| download | discoin-41d650ff92fd2a2e6960dac51652448ed670a52e.tar.xz discoin-41d650ff92fd2a2e6960dac51652448ed670a52e.zip | |
Merge pull request #6527
231c560 Use unique name for AlertNotify tempfile (Casey Rodarmor)
Diffstat (limited to 'src')
| -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 b8d5606cc..dd3c51d09 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(); |