Skip to content

Commit

Permalink
Address various debuginfotest issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-hofer committed Aug 11, 2023
1 parent 46f129b commit e1fa9a6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions substratevm/mx.substratevm/testhello.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def test():
rexp = [r"%s = {"%(wildcard_pattern),
r"%s<java.lang.Object> = {"%(spaces_pattern),
r"%s<_objhdr> = {"%(spaces_pattern),
r"%shub = %s,"%(spaces_pattern, address_pattern),
r"%shub = %s"%(spaces_pattern, address_pattern),
r"%sidHash = %s"%(spaces_pattern, address_pattern) if fixed_idhash_field else None,
r"%s}, <No data fields>}, "%(spaces_pattern),
r"%smembers of java\.lang\.String\[\]:"%(spaces_pattern),
Expand All @@ -173,7 +173,7 @@ def test():
r"%s<java.lang.Class> = {"%(spaces_pattern),
r"%s<java.lang.Object> = {"%(spaces_pattern),
r"%s<_objhdr> = {"%(spaces_pattern),
r"%shub = %s,"%(spaces_pattern, address_pattern),
r"%shub = %s"%(spaces_pattern, address_pattern),
r"%sidHash = %s"%(spaces_pattern, address_pattern) if fixed_idhash_field else None,
r"%s}, <No data fields>},"%(spaces_pattern),
r"%smembers of java\.lang\.Class:"%(spaces_pattern),
Expand All @@ -183,7 +183,7 @@ def test():
rexp = [r"%s = {"%(wildcard_pattern),
r"%s<java.lang.Object> = {"%(spaces_pattern),
r"%s<_objhdr> = {"%(spaces_pattern),
r"%shub = %s,"%(spaces_pattern, address_pattern),
r"%shub = %s"%(spaces_pattern, address_pattern),
r"%sidHash = %s"%(spaces_pattern, address_pattern) if fixed_idhash_field else None,
r"%s}, <No data fields>},"%(spaces_pattern),
r"%smembers of java\.lang\.Class:"%(spaces_pattern),
Expand Down Expand Up @@ -223,7 +223,7 @@ def test():
rexp = [r"%s = {"%(wildcard_pattern),
r"%s<java.lang.Object> = {"%(spaces_pattern),
r"%s<_objhdr> = {"%(spaces_pattern),
r"%shub = %s,"%(spaces_pattern, address_pattern),
r"%shub = %s"%(spaces_pattern, address_pattern),
r"%sidHash = %s"%(spaces_pattern, address_pattern) if fixed_idhash_field else None,
r"%s}, <No data fields>},"%(spaces_pattern),
r"%smembers of java\.lang\.Class:"%(spaces_pattern),
Expand All @@ -236,21 +236,21 @@ def test():

# ensure we can access fields of class constants
exec_string = execute("print 'java.lang.String[].class'.name->value->data")
rexp = r'%s = %s "\[Ljava.lang.String;"'%(wildcard_pattern, address_pattern)
rexp = r'%s = %s "\[Ljava.lang.String;'%(wildcard_pattern, address_pattern)

checker = Checker("print 'java.lang.String[].class'.name->value->data", rexp)

checker.check(exec_string)

exec_string = execute("print 'long.class'.name->value->data")
rexp = r'%s = %s "long"'%(wildcard_pattern, address_pattern)
rexp = r'%s = %s "long'%(wildcard_pattern, address_pattern)

checker = Checker("print 'long.class'.name->value->data", rexp)

checker.check(exec_string)

exec_string = execute("print 'byte[].class'.name->value->data")
rexp = r'%s = %s "\[B"'%(wildcard_pattern, address_pattern)
rexp = r'%s = %s "\[B'%(wildcard_pattern, address_pattern)

checker = Checker("print 'byte[].class'.name->value->data", rexp)

Expand Down

0 comments on commit e1fa9a6

Please sign in to comment.