|
|
@ -56,19 +56,19 @@ BOOST_AUTO_TEST_CASE(util_datadir)
|
|
|
|
const fs::path dd_norm = args.GetDataDirPath();
|
|
|
|
const fs::path dd_norm = args.GetDataDirPath();
|
|
|
|
|
|
|
|
|
|
|
|
args.ForceSetArg("-datadir", dd_norm.string() + "/");
|
|
|
|
args.ForceSetArg("-datadir", dd_norm.string() + "/");
|
|
|
|
ClearDatadirCache();
|
|
|
|
args.ClearPathCache();
|
|
|
|
BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath());
|
|
|
|
BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath());
|
|
|
|
|
|
|
|
|
|
|
|
args.ForceSetArg("-datadir", dd_norm.string() + "/.");
|
|
|
|
args.ForceSetArg("-datadir", dd_norm.string() + "/.");
|
|
|
|
ClearDatadirCache();
|
|
|
|
args.ClearPathCache();
|
|
|
|
BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath());
|
|
|
|
BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath());
|
|
|
|
|
|
|
|
|
|
|
|
args.ForceSetArg("-datadir", dd_norm.string() + "/./");
|
|
|
|
args.ForceSetArg("-datadir", dd_norm.string() + "/./");
|
|
|
|
ClearDatadirCache();
|
|
|
|
args.ClearPathCache();
|
|
|
|
BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath());
|
|
|
|
BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath());
|
|
|
|
|
|
|
|
|
|
|
|
args.ForceSetArg("-datadir", dd_norm.string() + "/.//");
|
|
|
|
args.ForceSetArg("-datadir", dd_norm.string() + "/.//");
|
|
|
|
ClearDatadirCache();
|
|
|
|
args.ClearPathCache();
|
|
|
|
BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath());
|
|
|
|
BOOST_CHECK_EQUAL(dd_norm, args.GetDataDirPath());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|