Skip to content

Commit 1d64007

Browse files
committed
Adjust new test to not try to split with newlines
Splitting expected instructions defined in a string block seems to not work on Windows during I-builds. This change reverts to the original String[] defining expected instructions. Fixes: #938
1 parent 81b7722 commit 1d64007

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ClassFileEditorHighlightingTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,16 @@ public void testClassFileWithoutDebuggingInformation() throws Exception {
222222
config = workingCopy.doSave();
223223
thread = launchToBreakpoint(config);
224224

225-
String[] expectedHighlights = """
226-
0 getstatic NoSources.i : int [7]
227-
3 iconst_1
228-
4 iadd
229-
5 putstatic NoSources.i : int [7]
230-
8 getstatic java.lang.System.out : java.io.PrintStream [13]
231-
11 getstatic NoSources.i : int [7]
232-
14 invokevirtual java.io.PrintStream.println(int) : void [19]
233-
17 return
234-
""".split(System.lineSeparator());
225+
String[] expectedHighlights = {
226+
" 0 getstatic NoSources.i : int [7]",
227+
" 3 iconst_1",
228+
" 4 iadd",
229+
" 5 putstatic NoSources.i : int [7]",
230+
" 8 getstatic java.lang.System.out : java.io.PrintStream [13]",
231+
" 11 getstatic NoSources.i : int [7]",
232+
" 14 invokevirtual java.io.PrintStream.println(int) : void [19]",
233+
" 17 return",
234+
};
235235

236236
for (int i = 0; i < expectedHighlights.length; i++) {
237237
expectHighlightedText(expectedHighlights[i], TIMEOUT);

0 commit comments

Comments
 (0)