From fce67043596ad2eb7024195db21003bf8416f627 Mon Sep 17 00:00:00 2001 From: Peter Hofer Date: Fri, 11 Aug 2023 16:31:41 +0200 Subject: [PATCH] Address various debuginfotest issues. --- substratevm/mx.substratevm/testhello.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/substratevm/mx.substratevm/testhello.py b/substratevm/mx.substratevm/testhello.py index a5b5f829b12c5..4444a4480d2a6 100644 --- a/substratevm/mx.substratevm/testhello.py +++ b/substratevm/mx.substratevm/testhello.py @@ -154,7 +154,7 @@ def test(): rexp = [r"%s = {"%(wildcard_pattern), r"%s = {"%(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}, }, "%(spaces_pattern), r"%smembers of java\.lang\.String\[\]:"%(spaces_pattern), @@ -173,7 +173,7 @@ def test(): r"%s = {"%(spaces_pattern), r"%s = {"%(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}, },"%(spaces_pattern), r"%smembers of java\.lang\.Class:"%(spaces_pattern), @@ -183,7 +183,7 @@ def test(): rexp = [r"%s = {"%(wildcard_pattern), r"%s = {"%(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}, },"%(spaces_pattern), r"%smembers of java\.lang\.Class:"%(spaces_pattern), @@ -223,7 +223,7 @@ def test(): rexp = [r"%s = {"%(wildcard_pattern), r"%s = {"%(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}, },"%(spaces_pattern), r"%smembers of java\.lang\.Class:"%(spaces_pattern), @@ -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)