summaryrefslogtreecommitdiff
path: root/tools/db_bench_tool_test.cc
diff options
context:
space:
mode:
authorMaysam Yabandeh <myabandeh@fb.com>2018-07-13 17:18:39 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-07-13 17:27:39 -0700
commit8581a93a6bdfb86b4126bd45c188244cc1465e19 (patch)
treea303827164420adc67dd18440d9f513c142836b0 /tools/db_bench_tool_test.cc
parent23b76252c8d89a6780c51ac799626cd9f7fb6299 (diff)
Per-thread unique test db names (#4135)
Summary: The patch makes sure that two parallel test threads will operate on different db paths. This enables using open source tools such as gtest-parallel to run the tests of a file in parallel. Example: ``` ~/gtest-parallel/gtest-parallel ./table_test``` Pull Request resolved: https://github.com/facebook/rocksdb/pull/4135 Differential Revision: D8846653 Pulled By: maysamyabandeh fbshipit-source-id: 799bad1abb260e3d346bcb680d2ae207a852ba84
Diffstat (limited to 'tools/db_bench_tool_test.cc')
-rw-r--r--tools/db_bench_tool_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/db_bench_tool_test.cc b/tools/db_bench_tool_test.cc
index 687f6574f..67426066e 100644
--- a/tools/db_bench_tool_test.cc
+++ b/tools/db_bench_tool_test.cc
@@ -26,7 +26,7 @@ static const size_t kArgBufferSize = 100000;
class DBBenchTest : public testing::Test {
public:
DBBenchTest() : rnd_(0xFB) {
- test_path_ = test::TmpDir() + "/db_bench_test";
+ test_path_ = test::PerThreadDBPath("db_bench_test");
Env::Default()->CreateDir(test_path_);
db_path_ = test_path_ + "/db";
wal_path_ = test_path_ + "/wal";