Changeset View
Changeset View
Standalone View
Standalone View
src/test/dbwrapper_tests.cpp
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | for (const int seek_start : {0, 5}) { | ||||
BOOST_CHECK_EQUAL(value, x * x); | BOOST_CHECK_EQUAL(value, x * x); | ||||
it->Next(); | it->Next(); | ||||
} | } | ||||
} | } | ||||
BOOST_CHECK(!it->Valid()); | BOOST_CHECK(!it->Valid()); | ||||
} | } | ||||
} | } | ||||
BOOST_AUTO_TEST_CASE(unicodepath) { | |||||
// 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. | |||||
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_AUTO_TEST_SUITE_END() | BOOST_AUTO_TEST_SUITE_END() |