summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-09-24 11:40:10 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-09-24 11:40:10 +0100
commitcf16ef6c250a2755155a02f24bad861b35a1f92b (patch)
treec337e27f1887032515ce8040febbfcd1f3087442
parent24bd2b363a8e9981a3583dfb190161ab335ee870 (diff)
add a 30 second timeout to failure if we get no response in this time
-rw-r--r--smoketestoo_native/smoketest.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/smoketestoo_native/smoketest.cxx b/smoketestoo_native/smoketest.cxx
index b77ed701c0ea..bb47b268d80b 100644
--- a/smoketestoo_native/smoketest.cxx
+++ b/smoketestoo_native/smoketest.cxx
@@ -197,7 +197,9 @@ void Test::test() {
disp, url, css::uno::Sequence< css::beans::PropertyValue >(),
new Listener(&result)),
css::uno::Any());
- result.condition.wait();
+ TimeValue t;
+ t.Seconds = 30; t.Nanosec = 0;
+ result.condition.wait(&t);
CPPUNIT_ASSERT(result.success);
CPPUNIT_ASSERT_EQUAL(rtl::OUString(), result.result);
}