MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

unit_tests/storage/shared_memory.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65using namespace osrm::storage;
66
67BOOST_AUTO_TEST_CASE(get_lock_dir_respects_shm_lock_dir_env)
68{
69 EnvGuard shm_guard("SHM_LOCK_DIR");
70
71 auto temp = std::filesystem::temp_directory_path() / "osrm-test-lock-dir";
72 std::filesystem::create_directories(temp);
73
74 EnvGuard::set("SHM_LOCK_DIR", temp.string());
75 auto lock_dir = getLockDir();
76 BOOST_CHECK_EQUAL(lock_dir, temp);
77
78 std::filesystem::remove(temp);
79}
80
81BOOST_AUTO_TEST_CASE(get_lock_dir_shm_lock_dir_takes_priority)
82{

Callers

nothing calls this directly

Calls 1

getLockDirFunction · 0.85

Tested by

no test coverage detected