Obtain resolver before spawning process_ in setUp
...so that tearDown does not hang waiting for (idling) process_ to terminate if setUp throws an exception when obtaining resolver.
This commit is contained in:
@@ -59,6 +59,9 @@ OfficeConnection::OfficeConnection(): process_(0) {}
|
|||||||
OfficeConnection::~OfficeConnection() {}
|
OfficeConnection::~OfficeConnection() {}
|
||||||
|
|
||||||
void OfficeConnection::setUp() {
|
void OfficeConnection::setUp() {
|
||||||
|
css::uno::Reference< css::bridge::XUnoUrlResolver > resolver(
|
||||||
|
css::bridge::UnoUrlResolver::create(
|
||||||
|
cppu::defaultBootstrap_InitialComponentContext()));
|
||||||
rtl::OUString desc;
|
rtl::OUString desc;
|
||||||
rtl::OUString argSoffice;
|
rtl::OUString argSoffice;
|
||||||
CPPUNIT_ASSERT(
|
CPPUNIT_ASSERT(
|
||||||
@@ -119,9 +122,6 @@ void OfficeConnection::setUp() {
|
|||||||
"\"soffice\" argument starts with neither \"path:\" nor"
|
"\"soffice\" argument starts with neither \"path:\" nor"
|
||||||
" \"connect:\"");
|
" \"connect:\"");
|
||||||
}
|
}
|
||||||
css::uno::Reference< css::bridge::XUnoUrlResolver > resolver(
|
|
||||||
css::bridge::UnoUrlResolver::create(
|
|
||||||
cppu::defaultBootstrap_InitialComponentContext()));
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
try {
|
try {
|
||||||
context_ =
|
context_ =
|
||||||
|
Reference in New Issue
Block a user