Skip to content
Snippets Groups Projects
Commit cc55488a authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fix testable mode not waiting for Device to recover

This might have led to test stalled exceptions despite the test did not yet even start properly.
parent 8b3007ba
No related branches found
No related tags found
No related merge requests found
......@@ -271,10 +271,11 @@ namespace ChimeraTK {
while(true) {
// [Spec: 2.3.1] (Re)-open the device.
owner->testableModeUnlock("Open/recover device");
do {
owner->testableModeUnlock("Wait before open/recover device");
usleep(500000);
boost::this_thread::interruption_point();
owner->testableModeLock("Attempt open/recover device");
try {
device.open();
}
......@@ -290,7 +291,6 @@ namespace ChimeraTK {
continue; // should not be necessary because isFunctional() should return false. But no harm in leaving it in.
}
} while(!device.isFunctional());
owner->testableModeLock("Initialise device");
boost::unique_lock<boost::shared_mutex> errorLock(errorMutex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment