Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
90f7a3ad
Kaydet (Commit)
90f7a3ad
authored
Mar 02, 2012
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OfficeConnection.java: don't wait forever if terminate() fails
üst
56665a8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
OfficeConnection.java
...est/source/java/org/openoffice/test/OfficeConnection.java
+6
-1
No files found.
unotest/source/java/org/openoffice/test/OfficeConnection.java
Dosyayı görüntüle @
90f7a3ad
...
@@ -128,6 +128,12 @@ public final class OfficeConnection {
...
@@ -128,6 +128,12 @@ public final class OfficeConnection {
context
=
null
;
context
=
null
;
try
{
try
{
desktopTerminated
=
desktop
.
terminate
();
desktopTerminated
=
desktop
.
terminate
();
if
(!
desktopTerminated
)
{
// in case terminate() fails we would wait forever
// for the process to die, so kill it
process
.
destroy
();
}
assertTrue
(
desktopTerminated
);
}
catch
(
DisposedException
e
)
{}
}
catch
(
DisposedException
e
)
{}
// it appears that DisposedExceptions can already happen
// it appears that DisposedExceptions can already happen
// while receiving the response of the terminate call
// while receiving the response of the terminate call
...
@@ -142,7 +148,6 @@ public final class OfficeConnection {
...
@@ -142,7 +148,6 @@ public final class OfficeConnection {
}
}
boolean
outTerminated
=
outForward
==
null
||
outForward
.
terminated
();
boolean
outTerminated
=
outForward
==
null
||
outForward
.
terminated
();
boolean
errTerminated
=
errForward
==
null
||
errForward
.
terminated
();
boolean
errTerminated
=
errForward
==
null
||
errForward
.
terminated
();
assertTrue
(
desktopTerminated
);
assertEquals
(
0
,
code
);
assertEquals
(
0
,
code
);
assertTrue
(
outTerminated
);
assertTrue
(
outTerminated
);
assertTrue
(
errTerminated
);
assertTrue
(
errTerminated
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment