You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ti...@apache.org on 2021/07/16 18:54:08 UTC
[tika] branch main updated: TIKA-3485: expect -1 on windows
This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/main by this push:
new 5a497b9 TIKA-3485: expect -1 on windows
5a497b9 is described below
commit 5a497b9b32fac32efed1b15f0d7c890a0e884617
Author: THausherr <ti...@snafu.de>
AuthorDate: Fri Jul 16 20:53:55 2021 +0200
TIKA-3485: expect -1 on windows
---
.../org/apache/tika/server/core/TikaServerIntegrationTest.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java b/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java
index c03bee5..9fc6a4b 100644
--- a/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java
+++ b/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerIntegrationTest.java
@@ -255,7 +255,13 @@ public class TikaServerIntegrationTest extends IntegrationTestBase {
if (!finished) {
fail("should have completed by now");
}
- assertEquals(255, p.exitValue());
+ String os = System.getProperty("os.name");
+ if (os.startsWith("Windows")) {
+ assertEquals(-1, p.exitValue());
+ }
+ else {
+ assertEquals(255, p.exitValue());
+ }
} finally {
if (p != null) {
p.destroyForcibly();