From bba8f010aabaf668195bb24fb9b6360a55deb4eb Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Tue, 18 Feb 2014 16:33:06 +0000 Subject: [PATCH] Fixed hardcoded /tmp path. --- test/vm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/vm.cpp b/test/vm.cpp index 55b8d79a2..a6901afe6 100644 --- a/test/vm.cpp +++ b/test/vm.cpp @@ -21,6 +21,7 @@ */ #include +#include #include #include #include @@ -38,10 +39,11 @@ public: { c_genesisDifficulty = (u256)1; + string tmpDir = (boost::filesystem::temp_directory_path() / "vmTest").string(); KeyPair p = KeyPair::create(); - Overlay o(State::openDB("/tmp/vmTest", true)); + Overlay o(State::openDB(tmpDir, true)); State s(p.address(), o); - BlockChain bc("/tmp/vmTest", true); + BlockChain bc(tmpDir, true); cout << s;