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;