From 5df4aee966e431c4cce89996158ad97108eb481e Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sat, 10 Jan 2009 18:20:04 +0100 Subject: [PATCH] circumvent false alarm in SubsystemRunner_test due to timing problems --- tests/lib/subsystem-runner-test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/lib/subsystem-runner-test.cpp b/tests/lib/subsystem-runner-test.cpp index dd2fc7b1f..766005357 100644 --- a/tests/lib/subsystem-runner-test.cpp +++ b/tests/lib/subsystem-runner-test.cpp @@ -306,12 +306,13 @@ namespace lumiera { try { runner.maybeRun (unit4); - NOTREACHED; } catch (lumiera::Error&) { ASSERT (lumiera_error() == error::LUMIERA_ERROR_LOGIC); // detected that the subsystem didn't come up - } + } // (due to the way the test subsystem is written, + // this may not always be detected, because there + // is a short time window where isUp_==true ) bool emergency = runner.wait();