Kaydet (Commit) cf16ef6c authored tarafından Michael Meeks's avatar Michael Meeks

add a 30 second timeout to failure if we get no response in this time

üst 24bd2b36
...@@ -197,7 +197,9 @@ void Test::test() { ...@@ -197,7 +197,9 @@ void Test::test() {
disp, url, css::uno::Sequence< css::beans::PropertyValue >(), disp, url, css::uno::Sequence< css::beans::PropertyValue >(),
new Listener(&result)), new Listener(&result)),
css::uno::Any()); css::uno::Any());
result.condition.wait(); TimeValue t;
t.Seconds = 30; t.Nanosec = 0;
result.condition.wait(&t);
CPPUNIT_ASSERT(result.success); CPPUNIT_ASSERT(result.success);
CPPUNIT_ASSERT_EQUAL(rtl::OUString(), result.result); CPPUNIT_ASSERT_EQUAL(rtl::OUString(), result.result);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment