diff options
author | Casey Rodarmor <casey@rodarmor.com> | 2015-08-05 23:10:14 -0400 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2015-09-21 05:21:30 +0000 |
commit | 843469ee15be64070eaf01c34b4590185be18db3 (patch) | |
tree | d213dee6c042e51f0c333922a95ebb65c875b111 /src | |
parent | 4e5ea71bd513ba1a5d19afbdfb545ed36560c546 (diff) | |
download | bitcoin-843469ee15be64070eaf01c34b4590185be18db3.tar.xz |
Use unique name for AlertNotify tempfile
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 4869ba52ac..2febbcd757 100644 --- a/src/test/alert_tests.cpp +++ b/src/test/alert_tests.cpp @@ -158,8 +158,8 @@ BOOST_AUTO_TEST_CASE(AlertNotify) { SetMockTime(11); - 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(); |