| 65 | using namespace osrm::storage; |
| 66 | |
| 67 | BOOST_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 | |
| 81 | BOOST_AUTO_TEST_CASE(get_lock_dir_shm_lock_dir_takes_priority) |
| 82 | { |
nothing calls this directly
no test coverage detected