Skip to content

Commit

Permalink
Merge bitcoin#18371: test: use fs namespace in dbwrapper unicodepath …
Browse files Browse the repository at this point in the history
…test

6afaf2f test: use fs namespace in dbwrapper unicodepath test (fanquake)

Pull request description:

  Use our `fs` namespace rather than `boost::filesystem`. Test was added in bitcoin#17641.

ACKs for top commit:
  sipsorcery:
    ACK 6afaf2f.

Tree-SHA512: 5ee024a6d90183b6c344f6a94cfbcacb006973f1f6d98cc421c1c6ef08c09b590d31c78b70b86d855e825241ffea25989cfc40d1bdd53e38a75cda0718ac4489
  • Loading branch information
MarcoFalke committed Mar 18, 2020
2 parents ce87d56 + 6afaf2f commit 3a8d250
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/dbwrapper_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,15 @@ BOOST_AUTO_TEST_CASE(iterator_string_ordering)

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
// the ANSI CreateDirectoryA call and the code page isn't UTF8.
// It will succeed if the created with CreateDirectoryW.
// the ANSI CreateDirectoryA call and the code page isn't UTF8.
// It will succeed if created with CreateDirectoryW.
fs::path ph = GetDataDir() / "test_runner_₿_🏃_20191128_104644";
CDBWrapper dbw(ph, (1 << 20));

fs::path lockPath = ph / "LOCK";
BOOST_CHECK(boost::filesystem::exists(lockPath));
BOOST_CHECK(fs::exists(lockPath));
}


Expand Down

0 comments on commit 3a8d250

Please sign in to comment.