mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
test: use fs namespace in dbwrapper unicodepath test
This commit is contained in:
parent
ce87d5613a
commit
6afaf2f680
1 changed files with 4 additions and 4 deletions
|
|
@ -399,15 +399,15 @@ BOOST_AUTO_TEST_CASE(iterator_string_ordering)
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(unicodepath)
|
BOOST_AUTO_TEST_CASE(unicodepath)
|
||||||
{
|
{
|
||||||
// Attempt to create a database with a utf8 character in the path.
|
// Attempt to create a database with a UTF8 character in the path.
|
||||||
// On Windows this test will fail if the directory is created using
|
// On Windows this test will fail if the directory is created using
|
||||||
// the ANSI CreateDirectoryA call and the code page isn't UTF8.
|
// the ANSI CreateDirectoryA call and the code page isn't UTF8.
|
||||||
// It will succeed if the created with CreateDirectoryW.
|
// It will succeed if created with CreateDirectoryW.
|
||||||
fs::path ph = GetDataDir() / "test_runner_₿_🏃_20191128_104644";
|
fs::path ph = GetDataDir() / "test_runner_₿_🏃_20191128_104644";
|
||||||
CDBWrapper dbw(ph, (1 << 20));
|
CDBWrapper dbw(ph, (1 << 20));
|
||||||
|
|
||||||
fs::path lockPath = ph / "LOCK";
|
fs::path lockPath = ph / "LOCK";
|
||||||
BOOST_CHECK(boost::filesystem::exists(lockPath));
|
BOOST_CHECK(fs::exists(lockPath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue