@@ -26,7 +26,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper)
2626{
2727 // Perform tests both obfuscated and non-obfuscated.
2828 for (const bool obfuscate : {false , true }) {
29- fs::path ph = m_args.GetDataDirPath () / (obfuscate ? " dbwrapper_obfuscate_true" : " dbwrapper_obfuscate_false" );
29+ fs::path ph = m_args.GetDataDirBase () / (obfuscate ? " dbwrapper_obfuscate_true" : " dbwrapper_obfuscate_false" );
3030 CDBWrapper dbw (ph, (1 << 20 ), true , false , obfuscate);
3131 char key = ' k' ;
3232 uint256 in = InsecureRand256 ();
@@ -45,7 +45,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper_basic_data)
4545{
4646 // Perform tests both obfuscated and non-obfuscated.
4747 for (bool obfuscate : {false , true }) {
48- fs::path ph = m_args.GetDataDirPath () / (obfuscate ? " dbwrapper_1_obfuscate_true" : " dbwrapper_1_obfuscate_false" );
48+ fs::path ph = m_args.GetDataDirBase () / (obfuscate ? " dbwrapper_1_obfuscate_true" : " dbwrapper_1_obfuscate_false" );
4949 CDBWrapper dbw (ph, (1 << 20 ), false , true , obfuscate);
5050
5151 uint256 res;
@@ -126,7 +126,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper_batch)
126126{
127127 // Perform tests both obfuscated and non-obfuscated.
128128 for (const bool obfuscate : {false , true }) {
129- fs::path ph = m_args.GetDataDirPath () / (obfuscate ? " dbwrapper_batch_obfuscate_true" : " dbwrapper_batch_obfuscate_false" );
129+ fs::path ph = m_args.GetDataDirBase () / (obfuscate ? " dbwrapper_batch_obfuscate_true" : " dbwrapper_batch_obfuscate_false" );
130130 CDBWrapper dbw (ph, (1 << 20 ), true , false , obfuscate);
131131
132132 char key = ' i' ;
@@ -162,7 +162,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper_iterator)
162162{
163163 // Perform tests both obfuscated and non-obfuscated.
164164 for (const bool obfuscate : {false , true }) {
165- fs::path ph = m_args.GetDataDirPath () / (obfuscate ? " dbwrapper_iterator_obfuscate_true" : " dbwrapper_iterator_obfuscate_false" );
165+ fs::path ph = m_args.GetDataDirBase () / (obfuscate ? " dbwrapper_iterator_obfuscate_true" : " dbwrapper_iterator_obfuscate_false" );
166166 CDBWrapper dbw (ph, (1 << 20 ), true , false , obfuscate);
167167
168168 // The two keys are intentionally chosen for ordering
@@ -202,7 +202,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper_iterator)
202202BOOST_AUTO_TEST_CASE (existing_data_no_obfuscate)
203203{
204204 // We're going to share this fs::path between two wrappers
205- fs::path ph = m_args.GetDataDirPath () / " existing_data_no_obfuscate" ;
205+ fs::path ph = m_args.GetDataDirBase () / " existing_data_no_obfuscate" ;
206206 create_directories (ph);
207207
208208 // Set up a non-obfuscated wrapper to write some initial data.
@@ -243,7 +243,7 @@ BOOST_AUTO_TEST_CASE(existing_data_no_obfuscate)
243243BOOST_AUTO_TEST_CASE (existing_data_reindex)
244244{
245245 // We're going to share this fs::path between two wrappers
246- fs::path ph = m_args.GetDataDirPath () / " existing_data_reindex" ;
246+ fs::path ph = m_args.GetDataDirBase () / " existing_data_reindex" ;
247247 create_directories (ph);
248248
249249 // Set up a non-obfuscated wrapper to write some initial data.
@@ -278,7 +278,7 @@ BOOST_AUTO_TEST_CASE(existing_data_reindex)
278278
279279BOOST_AUTO_TEST_CASE (iterator_ordering)
280280{
281- fs::path ph = m_args.GetDataDirPath () / " iterator_ordering" ;
281+ fs::path ph = m_args.GetDataDirBase () / " iterator_ordering" ;
282282 CDBWrapper dbw (ph, (1 << 20 ), true , false , false );
283283 for (int x=0x00 ; x<256 ; ++x) {
284284 uint8_t key = x;
@@ -358,7 +358,7 @@ BOOST_AUTO_TEST_CASE(iterator_string_ordering)
358358{
359359 char buf[10 ];
360360
361- fs::path ph = m_args.GetDataDirPath () / " iterator_string_ordering" ;
361+ fs::path ph = m_args.GetDataDirBase () / " iterator_string_ordering" ;
362362 CDBWrapper dbw (ph, (1 << 20 ), true , false , false );
363363 for (int x=0x00 ; x<10 ; ++x) {
364364 for (int y = 0 ; y < 10 ; y++) {
@@ -404,7 +404,7 @@ BOOST_AUTO_TEST_CASE(unicodepath)
404404 // On Windows this test will fail if the directory is created using
405405 // the ANSI CreateDirectoryA call and the code page isn't UTF8.
406406 // It will succeed if created with CreateDirectoryW.
407- fs::path ph = m_args.GetDataDirPath () / " test_runner_₿_🏃_20191128_104644" ;
407+ fs::path ph = m_args.GetDataDirBase () / " test_runner_₿_🏃_20191128_104644" ;
408408 CDBWrapper dbw (ph, (1 << 20 ));
409409
410410 fs::path lockPath = ph / " LOCK" ;
0 commit comments