From: Tom de Vries Date: Tue, 22 Oct 2024 07:23:25 +0000 (+0200) Subject: [gdb/testsuite] Improve class name in gdb.dwarf2/self-spec.exp X-Git-Tag: gdb-16-branchpoint~614 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=485d9cab65acb49838c9c6e5df7fa9ebfcfceaf9;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Improve class name in gdb.dwarf2/self-spec.exp I ran into: ... (gdb) pipe maint print objfiles self-spec | grep c1^M name: c1^M canonical: c1^M qualified: c1^M [3] ((addrmap *) 0xfffedfc1f010)^M (gdb) FAIL: gdb.dwarf2/self-spec.exp: class c1 in cooked index ... Fix this by renaming the class from c1 to class1. Tested on aarch64-linux. --- diff --git a/gdb/testsuite/gdb.dwarf2/self-spec.exp b/gdb/testsuite/gdb.dwarf2/self-spec.exp index 9bb4064874f..6ed3cf32726 100644 --- a/gdb/testsuite/gdb.dwarf2/self-spec.exp +++ b/gdb/testsuite/gdb.dwarf2/self-spec.exp @@ -30,7 +30,7 @@ Dwarf::assemble $asm_file { # Check handling of self-referencing DIE. declare_labels c1 c1: class_type { - {name c1} + {name class1} {specification :$c1} } @@ -59,8 +59,8 @@ require {string eq $index ""} require !readnow -gdb_test "pipe maint print objfiles $testfile | grep c1" \ - " *qualified: *c1" \ +gdb_test "pipe maint print objfiles $testfile | grep class1" \ + " *qualified: *class1" \ "class c1 in cooked index" gdb_test "maint expand-symtabs"