mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-24 14:49:58 +00:00
8204355: [Graal] org.graalvm.compiler.debug.test.CSVUtilTest fails on Windows due to improper line separator used
Reviewed-by: kvn
This commit is contained in:
parent
16cb20cfbd
commit
8de0f1ba41
@ -117,8 +117,8 @@ public class CSVUtilTest {
|
||||
CSVUtil.Escape.println(new PrintStream(outputStream), format, toObjectArray(args));
|
||||
// get the actual string
|
||||
String printedStream = new String(outputStream.toByteArray(), StandardCharsets.UTF_8);
|
||||
// remove newline
|
||||
assertEquals(expected, printedStream.substring(0, printedStream.length() - 1));
|
||||
// add newline to the expected string
|
||||
assertEquals(expected + System.lineSeparator(), printedStream);
|
||||
}
|
||||
|
||||
private static Object[] toObjectArray(String args) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user