[Libreoffice] Make dev-install without running smoketests
Lionel Elie Mamane
lionel at mamane.lu
Wed Aug 3 13:42:55 PDT 2011
On Wed, Aug 03, 2011 at 04:51:13PM +0100, Caolán McNamara wrote:
> What are your configure options for me to see if I can replicate this ?
> Looks like evilness which should be fixed.
I'm in a similar situation on master branch, but for me the smoketest
fails in officeconnection.cxx in function OfficeConnection::setUp(),
at that assertion:
for (;;) {
try {
context_ =
css::uno::Reference< css::uno::XComponentContext >(
resolver->resolve(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("uno:"))
+
desc +
rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(
";urp;StarOffice.ComponentContext"))),
css::uno::UNO_QUERY_THROW);
break;
} catch (css::connection::NoConnectException &) {}
if (process_ != 0) {
TimeValue delay = { 1, 0 }; // 1 sec
CPPUNIT_ASSERT_EQUAL(
osl_Process_E_TimedOut,
osl_joinProcessWithTimeout(process_, &delay));
}
}
I changed the last lines to:
oslProcessError
if (process_ != 0) {
TimeValue delay = { 1, 0 }; // 1 sec
oslProcessError rv = osl_joinProcessWithTimeout(process_, &delay);
fprintf(stderr, "%d\n", rv);
CPPUNIT_ASSERT_EQUAL(
osl_Process_E_TimedOut,
rv);
}
And then I see that the assertion succeeds several times, and then
finally fails, when the return value of the function call becomes
osl_Process_E_None (that is, 0).
--
Lionel
More information about the LibreOffice
mailing list