mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
Refactor SharedMemory test by removing Apple checks
Removed platform-specific code for Apple from SharedMemory test.
This commit is contained in:
1 parent
e6d4d4ea95
commit
3978956c51
1 file changed
-4
@@ -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<Data> shm(shm_id, -1);
|
||||
if (shm.exists()) {
|
||||
|
||||
Reference in new issue
Block a user