# HG changeset patch # User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> # Date 1639055623 -3600 # Node ID c2581dbd1dbf4963ca7ec2e63712edfb3912bf97 # Parent 6f68317d4d0f9aef154d17a3939eec592a47f364 Change test output to make it more informative on Windows diff --git a/tests/OnClientTester.java b/tests/OnClientTester.java --- a/tests/OnClientTester.java +++ b/tests/OnClientTester.java @@ -574,14 +574,14 @@ public final class OnClientTester { buf.append(' '); buf.append((int)c); - UnicodeBlock b = UnicodeBlock.of(c); - if (!Character.isISOControl(c) && b != null) { - if (b != UnicodeBlock.HIGH_SURROGATES && b != UnicodeBlock.LOW_SURROGATES && b != UnicodeBlock.SPECIALS) { - buf.append("='"); - buf.append(c); - buf.append("'"); - } - } +// UnicodeBlock b = UnicodeBlock.of(c); +// if (!Character.isISOControl(c) && b != null) { +// if (b != UnicodeBlock.HIGH_SURROGATES && b != UnicodeBlock.LOW_SURROGATES && b != UnicodeBlock.SPECIALS) { +// buf.append("='"); +// buf.append(c); +// buf.append("'"); +// } +// } } return "<" + buf.toString().trim() + ">"; @@ -589,6 +589,7 @@ public final class OnClientTester { private void testFileTransferHandlerUpload(Charset handlerEncoding, String fileEncoding) throws IOException, SQLException, Failure { prepare(); + outBuffer.append("Default encoding is " + Charset.defaultCharset().displayName() + "\n"); Path d = getTmpDir(currentTestName); Path f = d.resolve("data.txt"); OutputStream s = Files.newOutputStream(f, CREATE_NEW); @@ -606,7 +607,7 @@ public final class OnClientTester { String hexTwo = hexdump(two); String hexResult = hexdump(result); assertEq("query result hexdump", hexTwo, hexResult); - assertEq("query result", two, result); +// assertEq("query result", two, result); } private void test_FileTransferHandlerUploadRefused() throws IOException, SQLException, Failure {