diff --git a/slsDetectorSoftware/tests/test-SharedMemory.cpp b/slsDetectorSoftware/tests/test-SharedMemory.cpp index 4d389df1f..b102f5727 100644 --- a/slsDetectorSoftware/tests/test-SharedMemory.cpp +++ b/slsDetectorSoftware/tests/test-SharedMemory.cpp @@ -39,8 +39,6 @@ void freeShm(const int dindex, const int mIndex) { constexpr int shm_id = 10; -#ifndef __APPLE__ - const char *env_p = std::getenv(SHM_ENV_NAME); std::string env_name = env_p ? ("_" + std::string(env_p)) : ""; const std::string file_path = @@ -94,8 +92,6 @@ TEST_CASE("Free obsolete (without isValid)", "[detector][shm]") { } } -#endif - TEST_CASE("Create SharedMemory read and write", "[detector][shm]") { SharedMemory shm(shm_id, -1); if (shm.exists()) {