Skip to content

Commit

Permalink
Fix debuginfo test to work with Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Nov 2, 2021
1 parent 7159f33 commit 8cb05a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions substratevm/mx.substratevm/testhello.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,10 @@ def test():
checker.check(exec_string)

# list current line
# expect "[0-9]+ synchronized (this) {"
# expect "[0-9]+ synchronized (this) {" in Java 11
# or "[0-9]+ if (getClass() == PrintStream.class) {" in Java 17
exec_string = execute("list")
rexp = r"(%s)%ssynchronized \(this\) {"%(digits_pattern, spaces_pattern)
rexp = r"(%s)%s(synchronized \(this\) {|if \(getClass\(\) == PrintStream.class\))"%(digits_pattern, spaces_pattern)
checker = Checker('list println 1', rexp)
matches = checker.check(exec_string, skip_fails=False)

Expand Down

0 comments on commit 8cb05a2

Please sign in to comment.