This is an automated email from the ASF dual-hosted git repository.
THausherr 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 ba4d312aaf [TIKA-4848] Fix expected output in ExceptionUtilsTest to
account for Windows line endings. (#3089)
ba4d312aaf is described below
commit ba4d312aafd86c15c715f9b96366ea5b4572b112
Author: Tilman Hausherr <[email protected]>
AuthorDate: Fri Aug 28 10:52:27 2026 +0200
[TIKA-4848] Fix expected output in ExceptionUtilsTest to account for
Windows line endings. (#3089)
---
tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java
b/tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java
index c29f06708b..bd1674565b 100644
--- a/tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java
+++ b/tika-core/src/test/java/org/apache/tika/utils/ExceptionUtilsTest.java
@@ -75,6 +75,7 @@ public class ExceptionUtilsTest {
assertTrue(redacted.contains(" more\n"), "common-frame elision kept");
// Strip ": message" from every header line of FULL; the rest must be
identical.
String expected = full.replaceAll("(?m)^((?:\\t*Suppressed: |Caused
by: )?[\\w.$]+Exception): .*$", "$1");
+ expected = expected.replace("\r", ""); // windows
assertEquals(expected, redacted);
}