mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
fixed linking issue in arping and shm test (#659)
Co-authored-by: Erik Frojdh <erik.frojdh@psi.ch>
This commit is contained in:
parent
7c047cab4a
commit
0251aa9e63
@ -101,7 +101,7 @@ TEST_CASE("Move SharedMemory", "[detector]") {
|
|||||||
shm2 = std::move(shm); // shm is now a moved from object!
|
shm2 = std::move(shm); // shm is now a moved from object!
|
||||||
|
|
||||||
CHECK(shm2()->x == 9);
|
CHECK(shm2()->x == 9);
|
||||||
CHECK(shm() == nullptr);
|
REQUIRE_THROWS(shm()); // trying to access should throw instead of returning a nullptr
|
||||||
CHECK(shm2.getName() == std::string("/slsDetectorPackage_detector_") +
|
CHECK(shm2.getName() == std::string("/slsDetectorPackage_detector_") +
|
||||||
std::to_string(shm_id));
|
std::to_string(shm_id));
|
||||||
shm2.removeSharedMemory();
|
shm2.removeSharedMemory();
|
||||||
|
@ -85,8 +85,8 @@ void Arping::ProcessExecution() {
|
|||||||
if (!error.empty()) {
|
if (!error.empty()) {
|
||||||
LOG(logERROR) << error;
|
LOG(logERROR) << error;
|
||||||
}
|
}
|
||||||
|
const auto interval = std::chrono::seconds(60);
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(timeIntervalSeconds));
|
std::this_thread::sleep_for(interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ class Arping {
|
|||||||
std::vector<std::string>(MAX_NUMBER_OF_LISTENING_THREADS);
|
std::vector<std::string>(MAX_NUMBER_OF_LISTENING_THREADS);
|
||||||
std::atomic<bool> runningFlag{false};
|
std::atomic<bool> runningFlag{false};
|
||||||
std::atomic<pid_t> childPid{0};
|
std::atomic<pid_t> childPid{0};
|
||||||
static const int timeIntervalSeconds = 60;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace sls
|
} // namespace sls
|
||||||
|
Loading…
x
Reference in New Issue
Block a user