[Libreoffice-commits] .: smoketestoo_native/smoketest.cxx
Michael Meeks
michael at kemper.freedesktop.org
Sat Sep 24 03:39:47 PDT 2011
smoketestoo_native/smoketest.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit cf16ef6c250a2755155a02f24bad861b35a1f92b
Author: Michael Meeks <michael.meeks at novell.com>
Date: Sat Sep 24 11:40:10 2011 +0100
add a 30 second timeout to failure if we get no response in this time
diff --git a/smoketestoo_native/smoketest.cxx b/smoketestoo_native/smoketest.cxx
index b77ed70..bb47b26 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);
}
More information about the Libreoffice-commits
mailing list