aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCasey Rodarmor <casey@rodarmor.com>2015-08-05 23:10:14 -0400
committerLuke Dashjr <luke-jr+git@utopios.org>2015-09-21 05:21:30 +0000
commit843469ee15be64070eaf01c34b4590185be18db3 (patch)
treed213dee6c042e51f0c333922a95ebb65c875b111 /src
parent4e5ea71bd513ba1a5d19afbdfb545ed36560c546 (diff)
downloadbitcoin-843469ee15be64070eaf01c34b4590185be18db3.tar.xz
Use unique name for AlertNotify tempfile
Diffstat (limited to 'src')
-rw-r--r--src/test/alert_tests.cpp4
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();